2

This is actually a straightforward question, have been researching on how to use such command like code . for VSCode , but with GoLand in Windows. Any help please?

zippyboy
  • 57
  • 4

1 Answers1

4

GoLand works in a similar way to VSCode as covered in the docs:

goland64 .

However for this to work the folder with goland64.exe will need to be in your path. You can test this without adding the folder to your path by specifying the full path to the executable; on my PC this is:

"C:\Program Files\JetBrains\GoLand 2021.3\bin\goland64.exe" .
Brits
  • 14,829
  • 2
  • 18
  • 31
  • 1
    Thank you so much for your help, another follow-up question can I change the command from `goland64` into anything else? – zippyboy Feb 08 '22 at 09:03
  • I guess you could rename `goland64.exe` but that is likely to break other things (e.g. shortcuts). An alternative would be to create a `.cmd` ([see this](https://stackoverflow.com/a/16144756/11810946)) /`.ps1` file that calls `goland64.exe` and passes on the parameters. – Brits Feb 08 '22 at 09:19
  • Alternatively, you can download Toolbox App to manage your JetBrains IDEs installations and specify Shell script name in the settings per IDE. – s0xzwasd Feb 08 '22 at 10:22
  • is there a command to do this in MacOS? – Keith E. Truesdell Mar 10 '22 at 19:27