Jquery中文网 www.jquerycn.cn
Jquery中文网 >  后端编程  >  Go语言  >  正文 vscode 编辑器go配置文件

vscode 编辑器go配置文件

发布时间:2021-05-31   编辑:www.jquerycn.cn
jquery中文网为您提供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

到此这篇关于“vscode 编辑器go配置文件”的文章就介绍到这了,更多文章或继续浏览下面的相关文章,希望大家以后多多支持JQ教程网!

您可能感兴趣的文章:
ubuntu 16.04安装go语言并配置VSCode使用环境
Golang 环境配置(详细)
vscode如何创建一个go项目_编辑器 VS Code 如何快速查看 Go 接口?
在vscode中编写Python的详细步骤
vscode 编辑器go配置文件
vscode适合哪些开发语言
Golang 在 VSCode 中的调试配置
Go语言环境搭建(Windows版本)2020
从零开始学习GO语言-搭建Go语言开发环境-快速开发入门第一个小程序
在VS Code中配置GO开发环境并调试

[关闭]