Home > Development Tools > sublime > body text

Detailed explanation on how to build the development environment of win10 go sublime text3

藏色散人
Release: 2020-04-27 16:57:57
forward
3978 people have browsed it

The following tutorial column of sublime text3 will introduce to you how to build the win10 go sublime text3 development environment. I hope it will be helpful to friends in need!

Detailed explanation on how to build the development environment of win10 go sublime text3

Install go

Open golang official website https://golang.org/, click to download the required For the installation version of the platform, msi is recommended. After the download is completed, click Install and the default settings will be sufficient. After the installation is completed, the relevant environment variables of go will be automatically set. If you have already installed go, just ignore this step.

Install sublime Text3

Open the sublimetext official website http://www.sublimetext.com/, click to download the installation version of the required platform, and install it in a fool-proof way. Of course, in order to expand sublime plug-ins, you need to install the Packdge Control function. After opening sublime, select Tools and then click Install Package Control.

Install and configure the GoSublime plug-in

Click Package Control, enter Install Package, select Install Package to confirm, enter GoSublime in the pop-up dialog box, find the corresponding option, and return car. Wait for a while and the installation will be completed. Pay attention to the description and progress of the task at the bottom of sublime. After the installation is completed, restart sublime Text. Afterwards, you need to configure the gosublime plug-in accordingly, select Preferences->Package Setting->GoSublime->Settings - User, and enter the following content in the window that opens.

{
    "env": {
        "GOPATH": "D:/mygo", //go程序的个人代码工程路径
        "GOROOT": "C:/Go" //go语言的安装路径
    }
}
Copy after login

Restart sublime and it should be ready to use.

Install other plug-ins

Install the following common plug-ins we need for programming through Package Control. The installation process is the same as installing GoSublime. Select Package Control, enter Install Package and press Enter. Then enter the corresponding plug-in and press Enter. The plug-ins are as follows.

all Autocomplete, sublime only searches the current file for incomplete searches in this file, all Autocomplete searches for all open files, and the selection is more comprehensive.

converttoUTF8, all edited files are encoded in UTF-8.

Bracket Highlighter, bracket matching highlighting.

For more technical articles related to sublime text, please visit the sublime tutorial column!

The above is the detailed content of Detailed explanation on how to build the development environment of win10 go sublime text3. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template