1. 程式人生 > >vscode 編輯器go配置檔案

vscode 編輯器go配置檔案

{ "files.autoSave": "afterDelay", "go.buildOnSave": true, "go.lintOnSave": true, "go.vetOnSave": true, "go.buildFlags": [], "go.lintFlags": [], "go.vetFlags": [], "go.coverOnSave": false, "go.useCodeSnippetsOnFunctionSuggest": false, "go.formatOnSave": true, "go.formatTool"
: "goreturns", "go.goroot": "/usr/local/go",// 你的Goroot "go.gopath": "/Users/wenjun/Mycode/Golang_code", "git.autofetch": true,// 你的Gopath}

export CLICOLOR=1
export GOPATH=/Users/wenjun/Mycode/Golang_code
export GOROOT=/usr/local/go
export REDIS=/usr/local/redis
export MYSQL=/usr/local/mysql
export LUA=~/Documents/Lua

export PATH=${PATH}:$GOROOT/bin:$GOPATH/bin:$REDIS/bin:$MYSQL/bin:$LUA/bin

" enable syntax highlighting
syntax enable


" show line numbers
set number


" set tabs to have 4 spaces
set ts=4


" indent when moving to the next line while writing code
set autoindent


" expand tabs into spaces
set expandtab


" when using the >> or << commands, shift lines by 4 spaces
set shiftwidth=4


" show a visual line under the cursor's current line
set cursorline


" show the matching part of the pair for [] {} and ()
set showmatch


" set color
set background=dark
colorscheme solarized


" enable all Python syntax highlighting features
let python_highlight_all = 1