In the latest version of Sublime Text the easiest way to do that by going to Tools > Install Package Control…. You'll also need to install Package Control, if you haven't already. And if you're following along, you should also make sure that your workspace's bin directory is on your system path.Īccordingly my bash ~/.profile configuration includes these lines. To work correctly some of these Sublime Text plugins need an explicit $GOPATH environment variable to be set. If you haven't come across these plugins before, I recommend giving them a try! Prerequisites In this post I'm going to run through the process of setting these up. Snippet management with Sublime Text's inbuilt tool and the PackageResourceViewer plugin.Code navigation with the GoGuru plugin.Autocompletion with the gocode package.Code linting with the SublimeLinter plugin and gometalinter.Automatic formatting with the Gofmt plugin and goimports.Tooling integration with the official sublime-build plugin.Although it took a while to configure, it's resulted in a coding environment that feels clearer to use and more streamlined than before. ![]() For the past couple of years I've used Sublime Text as my primary code editor, along with the GoSublime plugin to provide some extra IDE-like features.īut I've recently swapped GoSublime for a more modular plugin setup and have been really happy with the way it's worked out.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |