Skip to content

Instantly share code, notes, and snippets.

@jeasonstudio
Last active February 14, 2019 04:12
Show Gist options
  • Select an option

  • Save jeasonstudio/4c9f7c8a49509939445bd07596fd1bc1 to your computer and use it in GitHub Desktop.

Select an option

Save jeasonstudio/4c9f7c8a49509939445bd07596fd1bc1 to your computer and use it in GitHub Desktop.
MY VSCODE settings
// 将设置放入此文件中以覆盖默认设置
{
// terminal
"terminal.integrated.shell.osx": "/bin/zsh",
"terminal.external.osxExec": "iTerm.app",
"terminal.integrated.fontSize": 14,
// editor
"editor.fontFamily": "'Dank Mono', 'Hack', Menlo, 'Input Sans Narrow', Monaco, 'Courier New', monospace",
"editor.minimap.enabled": true,
"editor.tabSize": 2,
"editor.fontSize": 16,
"editor.smoothScrolling": true,
"editor.fontLigatures": true,
// workbench
"workbench.colorCustomizations": {
// "statusBar.background": "#1E1E1E",
// "statusBarItem.prominentBackground": "#1E1E1E",
// "statusBar.debuggingBackground": "#1E1E1E",
// "statusBar.debuggingBorder": "#000000"
},
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Dracula Soft",
"workbench.statusBar.feedback.visible": false,
// typescript
"typescript.check.npmIsInstalled": false,
// git
"git.enableSmartCommit": true,
"git.confirmSync": false,
"git.autofetch": true,
// go
"go.gopath": "/Users/jeason/go",
// @flow
"javascript.validate.enable": false,
"flow.useNPMPackagedFlow": true,
// ToDo Highlight
"todohighlight.isEnable": true,
"todohighlight.keywords": [
"FIX:"
],
// vim
"vim.easymotion": true,
"vim.sneak": true,
"vim.incsearch": true,
// 使用系统剪贴板
"vim.useSystemClipboard": true,
// 不忽略大小写
"vim.ignorecase": false,
// 高亮搜索结果
"vim.hlsearch": true,
// 可视模式下 * 或 # 搜索选中部分
"vim.visualstar": true,
// 允许 vim 根据 mode 修改 statusbar 颜色
"vim.statusBarColorControl": false,
// 打开命令面板时显示 `:` 符号
"vim.cmdLineInitialColon": true,
"vim.easymotionMarkerBackgroundColor": "#236B8E",
"vim.easymotionMarkerYOffset": -6,
// 修复代码折叠时光标经过的 bug, 但有副作用
"vim.foldfix": true,
"vim.insertModeKeyBindings": [
{
"before": [
"j",
"k"
],
"after": [
"<Esc>"
],
"commands": [
]
}
],
"vim.otherModesKeyBindingsNonRecursive": [
{
"before": [
"leader",
"'"
],
"after": [],
"commands": [
{ "command": "workbench.action.terminal.focus" }
]
},
{
// Cmd + h/l 切换 Buffer
"before": [
"<Command-h>",
],
"after": [],
"commands": [
{ "command": "workbench.action.previousEditorInGroup" }
]
},
{
"before": [
"<Command-l>",
],
"after": [],
"commands": [
{ "command": "workbench.action.nextEditorInGroup" }
]
},
{
// 快速搜索文件
"before": [
"leader",
"f",
"f"
],
"after": [],
"commands": [
{ "command": "workbench.action.quickOpen" }
]
},
{
// 取消搜索高亮
"before": [
"<C-n>"
],
"after": [],
"commands": [
{
"command": ":nohl"
}
]
},
{
// 保存文件并退出
"before": [
"Z",
"Z"
],
"after": [],
"commands": [
{
"command": "workbench.action.files.save",
"args": []
},
{
"command": "workbench.action.closeActiveEditor",
"args": []
}
]
}
],
// 使用空格键作为前缀键
"vim.leader": "<space>",
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false
},
// Emmet
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"vue-html": "html",
"plaintext": "jade"
},
// files
"files.associations": {
"*.wpy": "vue",
"*.wxss": "css",
"*.wxml": "html"
},
// others
"extensions.ignoreRecommendations": true,
"window.zoomLevel": 0,
// eslint
"eslint.validate": [
"javascript",
"javascriptreact",
"vue"
],
// gitlens
"gitlens.gitExplorer.files.layout": "tree",
"gitlens.hovers.currentLine.over": "line",
"gitlens.currentLine.enabled": false,
"gitlens.hovers.enabled": false,
// material-icon-theme
"material-icon-theme.folders.theme": "specific",
"material-icon-theme.folders.color": "#26a69a",
"material-icon-theme.hidesExplorerArrows": true,
"material-icon-theme.activeIconPack": "react_redux",
// guides
"editor.renderIndentGuides": false,
"diffEditor.ignoreTrimWhitespace": true,
"gitlens.keymap": "chorded",
// custom snippets first
"editor.snippetSuggestions": "top",
"editor.lineNumbers": "relative",
"markdown.preview.doubleClickToSwitchToEditor": false,
"graphqlForVSCode.nodePath": "/Users/jeason/.nvm/versions/node/v8.9.4/lib/node_modules",
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressResultsExplorerNotice": false,
"suppressShowKeyBindingsNotice": true
},
"gitlens.historyExplorer.enabled": true,
"C_Cpp.clang_format_fallbackStyle": "Google",
"explorer.confirmDragAndDrop": false,
"materialTheme.fixIconsRunning": false,
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
//following will be in italic (=FlottFlott)
"comment",
"entity.name.type.class", //class names
"keyword", //import, export, return…
"constant", //String, Number, Boolean…, this, super
"storage.modifier", //static keyword
"storage.type.class.js", //class keyword
],
"settings": {
"fontStyle": "italic"
}
},
{
"scope": [
//following will be excluded from italics (VSCode has some defaults for italics)
"invalid",
"keyword.operator",
"constant.numeric.css",
"keyword.other.unit.px.css",
"constant.numeric.decimal.js",
"constant.numeric.json"
],
"settings": {
"fontStyle": ""
}
}
]
},
"prettier.eslintIntegration": true,
"prettier.singleQuote": true,
"prettier.trailingComma": "es5",
"breadcrumbs.filePath": "last",
"emmet.showSuggestionsAsSnippets": true,
"html.format.endWithNewline": true
}
@jeasonstudio
Copy link
Copy Markdown
Author

// 将设置放入此文件中以覆盖默认设置
{
	// terminal
	"terminal.integrated.shell.osx": "/bin/zsh",
	"terminal.external.osxExec": "iTerm.app",
	"terminal.integrated.fontSize": 16,
	"terminal.integrated.fontFamily": "'Dank Mono'",
	// editor
	"editor.fontFamily": "'Dank Mono', Menlo, 'Input Sans Narrow', Monaco, 'Courier New', monospace",
	"editor.minimap.enabled": true,
	"editor.tabSize": 2,
	"editor.fontSize": 16,
	"editor.smoothScrolling": true,
  "editor.fontLigatures": true,
  // custom snippets first
	"editor.snippetSuggestions": "top",
  "editor.lineNumbers": "relative",
  // guides
	"editor.renderIndentGuides": false,
	"diffEditor.ignoreTrimWhitespace": true,
	// workbench
	"workbench.iconTheme": "material-icon-theme",
	"workbench.colorTheme": "Dracula Soft",
	"workbench.statusBar.feedback.visible": false,
	// typescript
	"typescript.check.npmIsInstalled": false,
	// git
	"git.enableSmartCommit": true,
	"git.confirmSync": false,
	"git.autofetch": true,
	// ToDo Highlight
	"todohighlight.isEnable": true,
	"todohighlight.keywords": [
		"FIX:"
	],
	// Emmet
	"emmet.triggerExpansionOnTab": true,
	"emmet.includeLanguages": {
		"javascript": "javascriptreact",
		"vue-html": "html",
		"plaintext": "jade"
	},
	// files
	"files.associations": {
		"*.wpy": "vue",
		"*.wxss": "css",
    "*.wxml": "html",
    "*.yql": "yaml"
	},
	// eslint
	"eslint.validate": [
		"javascript",
		"javascriptreact",
		"vue"
	],
	// gitlens
	"gitlens.gitExplorer.files.layout": "tree",
	"gitlens.hovers.currentLine.over": "line",
	"gitlens.currentLine.enabled": false,
	"gitlens.hovers.enabled": false,
  "gitlens.keymap": "chorded",
  "gitlens.advanced.messages": {
		"suppressCommitHasNoPreviousCommitWarning": false,
		"suppressCommitNotFoundWarning": false,
		"suppressFileNotUnderSourceControlWarning": false,
		"suppressGitVersionWarning": false,
		"suppressLineUncommittedWarning": false,
		"suppressNoRepositoryWarning": false,
		"suppressResultsExplorerNotice": false,
		"suppressShowKeyBindingsNotice": true
	},
  "gitlens.historyExplorer.enabled": true,
  "gitlens.views.fileHistory.enabled": true,
  "gitlens.views.lineHistory.enabled": true,

	// material-icon-theme
	"material-icon-theme.folders.theme": "specific",
	"material-icon-theme.folders.color": "#26a69a",
	"material-icon-theme.hidesExplorerArrows": true,
	"material-icon-theme.activeIconPack": "react_redux",

	"editor.tokenColorCustomizations": {
		"textMateRules": [
			{
				"scope": [
					//following will be in italic (=FlottFlott)
					"comment",
					"entity.name.type.class", //class names
					"keyword", //import, export, return…
					"constant", //String, Number, Boolean…, this, super
					"storage.modifier", //static keyword
					"storage.type.class.js", //class keyword
				],
				"settings": {
					"fontStyle": "italic"
				}
			},
			{
				"scope": [
					//following will be excluded from italics (VSCode has some defaults for italics)
					"invalid",
					"keyword.operator",
					"constant.numeric.css",
					"keyword.other.unit.px.css",
					"constant.numeric.decimal.js",
					"constant.numeric.json"
				],
				"settings": {
					"fontStyle": ""
				}
			}
		]
  },
  // prettier
	"prettier.eslintIntegration": true,
	"prettier.singleQuote": true,
  "prettier.trailingComma": "es5",
  
  // others
	"extensions.ignoreRecommendations": true,
  "window.zoomLevel": 0,
  "javascript.validate.enable": false,
  "emmet.showSuggestionsAsSnippets": true,
  "markdown.preview.doubleClickToSwitchToEditor": false,
	"C_Cpp.clang_format_fallbackStyle": "Google",
	"explorer.confirmDragAndDrop": false,
	"materialTheme.fixIconsRunning": false,
	"html.format.endWithNewline": true,
	"breadcrumbs.enabled": true,
	"typescript.updateImportsOnFileMove.enabled": "never"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment