IntelliJ idea 14 Installing the Golang plugin Go-lang-idea-plugin

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


1, download IntelliJ idea flagship, I'm using 14.1.3 version:

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

2. Download Golang official SDK and Go-lang-idea-plugin plugin source code

http://golang.org/dl/(To turn = = Wall)

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

3, unzip the downloaded Go-lang-idea-plugin compressed package , Idea click on file--open the project. After opening there are many compile errors, regardless, the next step to configure.

4, click File--Project Structure to open the Project Structure Configuration window.


, add the path to the JDK and IntelliJ Platform Plugin SDK. The JDK is best to use the JDK1.8 version, or the subsequent compilation error may occur, IntelliJ Platform Plugin SDK path to IntelliJ installation path root directory


5. Set up the project SDK

Click File, Project Structure->project, set the project SDK to the idea SDK that you just set up,


6, in Debug Configuration, select All in Intellij-go


7, compile build jar

Click Build---Prepare plugin module ' intellij-go ' for deployment, the prompt will pop up after the compilation is successful.


8, click on Install plugin from disk, Plugins Settings, file, select the generated jar package, click OK, and you will be prompted to restart idea.




9, after restart, unzip the downloaded Golang SDK zip file, then click File- --Project Structure, add the Go SDK path, the path is the extracted files path. To this IntelliJ idea configuration Golang environment is complete.




Finally write an example of Hello Word under test:




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.