Home  >  Article  >  Backend Development  >  What is LiteIDE

What is LiteIDE

青灯夜游
青灯夜游Original
2023-01-17 11:00:392907browse

LiteIDE is an open source, cross-platform, lightweight integrated development environment (IDE) specially designed for Go language development. It is a development tool for Go language and is developed based on Qt (a cross-platform C framework), supporting Windows, Linux and Mac OS X platforms.

What is LiteIDE

The operating environment of this tutorial: Windows 10 system, LiteIDE X36 version, Dell G3 computer.

LiteIDE is an open source, cross-platform, lightweight integrated development environment (IDE) specially designed for Go language development. It is developed based on Qt (a cross-platform C framework) and supports Windows, Linux and Mac OS X platform. The first version of LiteIDE was released in early January 2011 and is one of the earliest IDEs for the Go language.

LiteIDE has very good support for editing, compiling and running Go programs and projects. It also includes an abstract syntax tree view of the source code and some built-in tools (this development environment was developed by the Chinese uncle vfc).

LiteIDE is a very easy-to-use lightweight Go integrated development environment (based on QT, Kate and SciTE), including cross-platform development and other necessary features, for code writing, automatic completion and operation Debugging has excellent support. It uses the concept of Go projects to browse and manage project files. It also supports the function of switching between various Go development environments and cross-compilation.

At the same time, it has the function of abstract syntax tree view, which can clearly overview the constants, variables, functions, different types and their properties and methods in the project.

Download LiteIDE

You can download the LiteIDE installation package through the following methods:

In this section we need to download the Windows version of LiteIDE installation package.

What is LiteIDE

Because LiteIDE is a green version and does not require installation, after the download is completed, you will get a compressed file in ZIP format.

What is LiteIDE

Extract the compressed package to any directory. Here we decompress the compressed package to the D drive. After decompression, you will get a folder named "liteide".

What is LiteIDE

Enter the bin folder in the LiteIDE folder. You can find a file named "liteide.exe" in the bin folder, which is the startup program of LiteIDE.

What is LiteIDE

Double-click to run "liteide.exe" to open LiteIDE normally. In order to facilitate future use, it is recommended that you create a shortcut to LiteIDE on the desktop (in "liteide.exe "Right-click → "Send to" → "Desktop Shortcut").

What is LiteIDE

Configuring LiteIDE

To modify the current running environment, you need to set the corresponding running settings according to different systems Environment, because we are using a 64-bit Windows system, we need to set the running environment to Win64.

What is LiteIDE

Configure the current running environment, click "Tools" and select "Edit Current Environment" in the drop-down menu, as shown in the figure below.

What is LiteIDE

Find "GOROOT=xxx" in the opened file and modify it to the value corresponding to GOROOT in the environment variable, as shown below. (Note: Remember to save after the modification is completed)

What is LiteIDE

It doesn’t matter if you can’t remember clearly. You can use the go env command in the CMD window to view the corresponding value of GOROOT.

What is LiteIDE

Add a custom GOPATH and find "Manage GOPATH/Modules..." in the "Tools" menu, as shown in the figure below. (Note: Because the system already contains a default GOPATH, this step is not necessary, just understand it)

What is LiteIDE

Find "Use custom GOPATH" in the pop-up window, check it, then click "Add Directory" and select the appropriate directory.

1What is LiteIDE

New project

At this point LiteIDE has been basically configured, let’s create it now A project to test it out.

First, select "New" in the "File" menu, in the pop-up window, select the system default GOPATH path, select "Go1 Command Project" as the template, and finally fill in the project name and select the appropriate directory. , click "OK" after confirming it is correct.

1What is LiteIDE

The newly created project is as follows. The editor automatically created two files for us and generated simple code in "main.go".

1What is LiteIDE

Click the "BR" button in the upper right corner of the editor to run the code in "main.go" and generate an .exe file in the current directory. executable file.

1What is LiteIDE

[Related recommendations: Go video tutorial, Programming teaching

The above is the detailed content of What is LiteIDE. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn