Installation
Refer to GitHub's instructions
Add Gopath
Create workspace
Create a new file
Run the program
There are two ways to run a program in Liteide:
FR (Filerun) is a single file that compiles and runs, and you can use SHIFT + ALT + R shortcut keys;
BR (Buildandrun) is compiled to run the entire project, you can use the COMMAND + R shortcut key.
The difference between compiling and running a single file and compiling the entire project is:
When compiling and running the entire project, only one source file is allowed to have the main function;
When compiling and running a single project, multiple source files are allowed to contain the main function, and no error occurs when running.
Using the Go Get/install installation package
Some shortcut keys
| Function |
Shortcut keys |
| Jump to function declaration |
Command + SHIFT + J |
| Automatic format code (save file) |
Command + S |
|
|