It has tabs for easy navigation between open files. The Editor pane is on the right side, where you write your code. To see a list of all tool windows, navigate to View | Tool Windows. ![]() Tool windows are windows that provide access to project management, search, running and debugging, integration with version control systems, and other tasks. The Project tool window, which is on the left side, displays your project files. When a project is opened, you see the main window divided into several logical areas. From the Welcome to IntelliJ IDEA dialog, you can create and open projects, check out a project from a version control system, view documentation, and configure the IDE. When you launch IntelliJ IDEA for the very first time, you see the Welcome to IntelliJ IDEA dialog. In the New Go File dialog, type a name of the file and select whether you want to create an empty Go file ( Empty file) or a Go file with the defined main function ( Simple application). Right-click the parent folder of a project, and select New | Go File.Ĭlick the parent folder of a project, press Alt+Insert, and select Go File.Ĭlick the parent folder of a project, navigate to File | New | Go File. To create a Go file, perform one of the following actions: Read more about environment variables in the Environment variables section.Ī new project has no Go files. For example, the GOPROXY environment variable. (Optional) In the Environment field, specify environment variables that you need for your project. For more information about vendoring, see Vendoring. For Go versions 1.14 RC and later, the Enable vendoring support automatically checkbox is disabled. Since Go 1.14 RC, the automatic vendoring mode became a built-in Go feature. (Optional) Select or clear the Enable vendoring support automatically checkbox. To change or install a new version of Go SDK, click the Add SDK… button and select Local… to choose the Go SDK version on your hard drive, or select Download… to download Go SDK from the official repository. Usually, the location is defined automatically. In the GOROOT field, specify the location of your Go installation. In the New Project dialog, select New project from the list of available projects.Įnsure that Go is selected as a project language in the Language list. Create a project with Go modules integrationĪlternatively, click New Project in the Welcome to IntelliJ IDEA dialog. For more information about installing plugins, read Install plugins. To use other version control systems, install a corresponding plugin. Click OK.įor more information about version control systems, see Version control. To use a file browser, click the Browse icon. In the Location field, specify the path for the SDK. In the file browser, navigate to the SDK version that is on your hard drive.ĭownload…: download the SDK. Click the Add SDK button and select between two options:Īdd SDK…: use a local SDK copy. To set the Go SDK, open settings Ctrl+Alt+S and navigate to Languages & Frameworks | Go | GOROOT. You can specify a local path to the SDK or download it. Enter a path to the sources and clone the repository to your computer.Īfter you have opened your project, you need to specify the location of the Go SDK. To check out files from Mercurial, install and configure Mercurial and restart IntelliJ IDEA. Enter your GitHub credentials and grant access to your GitHub account. You will be redirected to where you need to click Authorize in GitHub. To check out files from GitHub, select GitHub and click Log In via GitHub…. In the Welcome to IntelliJ IDEA dialog, click Get from Version Control.įrom the Version Control list, select Git or Mercurial: In the file browser, navigate to a folder with project files and click Open….Ĭlone an existing project from a Version Control System ![]() In the Welcome to IntelliJ IDEA dialog, click Open. You have three options to start working on a project inside the IDE:Ĭheck out a project from the Version Control System (VCS) It serves as a basis for coding assistance, bulk refactoring, coding style consistency, and other features. Everything you do in IntelliJ IDEA is done within the context of a project. Open or create a Go project in IntelliJ IDEAĪfter you have installed the Go plugin and launched it for the first time, you need to create a project. This quick start guide will introduce you to the key concepts and help you with your first steps in IntelliJ IDEA.
0 Comments
Leave a Reply. |