This is a creation in Article, where the information may have evolved or changed.
1. Installing Sublime Text 3
Sublime Text 3 (hereinafter referred to as ST) download and installation I will not say, is still a beta version, but it is said that more than ST2 added a lot of new features, download address:
Http://www.sublimetext.com/3
ST3 crack is very convenient (st you heartless, 79 DAO or how many knives ah, don't blame me Not righteousness), recommend Deadwood Blog method:
Http://www.xiumu.org/note/sublime-text-3.shtml
Here's what to pay attention to when cracking:
The following are the registered machines that are running:
Attention to the ellipse part, to first point this one to replace the start exe of St, and then open the key input to the generation to register, or it will fail to register,:)
2. Install the package Control
Next also note is ST3 under the package Control installation, this and ST2 on the different, because the updated Python excuse, with the Python3, recommended to refer to the official method :
Https://sublime.wbond.net/installation
Press and hold command line CTRL + ' bring up the command line to enter the following code:
Import Urllib.request,os; PF = ' package control.sublime-package '; IPP = Sublime.installed_packages_path (); Urllib.request.install_opener (Urllib.request.build_opener (Urllib.request.ProxyHandler ())); Open (Os.path.join (IPP, PF), ' WB '). Write (Urllib.request.urlopen (' http://sublime.wbond.net/' + pf.replace (', '%20 ')) . Read ())
After installation, restart St, you can use the package control
3. Installing Gosublime
Press the shortcut key CTRL+SHIFT+P type PCI and select the first install package:
type Gosublime, enter the installation, reboot after installation, then you can write your own go code. Test Code:
Package Mainimport "FMT" Func Main () {FMT. Println ("Hello, World")}
Ctrl+b compile run, the following console appears:
If your source file name is Hello.go, run go run hello.go as shown. Note If ctrl+b error, prompt no build system, note that your source files are not saved with the. Go suffix, there is a hint that there is no setting Gopath, right-click My Computer-"Properties-" Advanced system settings-"Environment variables, Create a new variable with the key named Gopath set to: $GO installation location \ Bin, for example: "D:\Go\bin".
several ST3 plugins are recommended: ConvertToUTF8
Alignment: Partial code alignment, such as the ability to align equals sign
brackethighlighter: Code highlighting
sidebarenhancements
Well, let's start your go trip!!!