![]() ![]() To open the folder, click the Explorer icon in the Activity Bar then click Open Folder.Ĭlick New Folder in the Explorer panel, then Create the root director for your sample Go application named sample-appĬlick New File in the Explorer panel, then name the file main.go In Visual Studio Code, open the folder where you'll create the root directory of your Go application. Wait for the Go tools to finish updating.ĥ. When prompted, select all the available Go tools then click OK. Search for Go: Install/Update tools then run the command from the pallet Or use the keyboard shortcut (Ctrl+Shift+P) In Visual Studio Code, open Command Palette's Help > Show All Commands. Search for the Go extension, then select install. In Visual Studio Code, bring up the Extensions view by clicking on the Extensions icon in the Activity Bar. Download the version for your operating system, supports Windows, Linux, and macOS.Open a command prompt, then run go version to confirm Go was installed.įollow these steps to install Visual Studio Code:.Download the version for your operating system.In a web browser, go to go.dev/doc/install. ![]() ![]() Then you'll write, run, and debug a sample Go program. In this quickstart, you'll configure Visual Studio Code. Visual Studio Code and the Go extension provide IntelliSense, code navigation, and advanced debugging. This makes Visual Studio Code the most popular editor for Go developers. In the Go Developer Survey 2020 Results, 41% of respondents chose Visual Studio Code as their most preferred editor for Go. In this quickstart, you'll install and configure the Go for Visual Studio Code extension. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |