IntelliJ idea 14 Installing the Golang plugin google-go-lang-idea-

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

IntelliJ idea 14 How to install the Golang plug-in Google-go-lang-idea-plugin

2015-03-08 16:51 Zsjangel

Read 4249 times 0 people like 1 reviews Favorites

Idea of the editor are very strong, so now learn go also want to use him ah, helpless this plugin engaged for a long time, finishing the next process record under


1. Download the idea Editor , of course.

http://www.jetbrains.com/idea/download/



Attach the flagship registration machine Address

http://download.csdn.net/detail/abacaba/8240327

Have the ability to purchase, please try to buy the original Oh, such a good IDE with piracy really feel very guilty ah, but the package of tickets too little



2. Download plug-in Project source code self-compiled jar plug-in package

Https://github.com/go-lang-plugin-org/go-lang-idea-plugin





Unzip the downloaded zip package, and then open the project by doing a File-and open operation



After you open the project, do the SDK and module configuration


Perform action File-and project Structure open the Project Structure Configuration window



As configured, the path to the JDK and idea are set in SDKs (Go SDK on the diagram you leave him alone, you can't do it now)




Idea's SDK is actually the software installation directory



Then the module setup Modules




Sets the SDK dependency for the current module, and if not set here, the following error occurs at compile time:



I'm here somehow, long time to find out why.


Then select the Ro.redeul.google.go package to compile,



If error does not appear here, the compilation succeeds.


3. Build plug-in Jar installation package

Select Build--Prepare Plugin module ... For Deployment will generate a Google-go-language.jar file under the project root directory



4. Install the plugin:

Select File->settings, Plugins, install Plugins from disk in the lower right corner

Selecting the jar file you just generated will automatically install the plugin and restart the software.




5. Download and install the Go SDK

http://golang.so/dl/1.4/

Choose your corresponding system version to install it,


Then some system environment variables are configured,

Reference:

New variable name: GOBIN variable Value: C:\Go\bin new variable name: Goarch Variable Value: 386 if the value of the 64-bit system variable is AMD64 new variable name: GOOS variable Value: Windows new variable name: Goroot variable Value: C:\Go new Variable name: Gopath variable Value: C:\my\go\project \my\go\project is your project directory editor path at the end of the variable value of path plus; C:\Go\bin



Then you can see the Go icon when you create a new project.



New Project Hello World O (∩_∩) o haha, you can start developing your awesome GO project.




All right, let's do this.



--------------------------------------------------------------------------------------------------------------- -----------------------------------------------


2015/03/09 10:49

Today on another computer configuration, found in the Java JDK 1.7 environment to compile the plugin always error, and then upgrade to 1.8 will be able to pass the




This article from: CSDN blog

Thanks to the author: Zsjangel

View Original: IntelliJ idea 14 How to install the Golang plug-in Google-go-lang-idea-plugin


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.