我的vscode配置
创始人
2025-05-28 02:36:45
0次

why vscode

曾经我还是懵懂的少年时,感觉IDEA世界第一(现在应该也是😂)php是世界上最好的语言😂。我曾经使用过IDEA WebStorm Subline Atom, 最后还是停留在了vscode。别问我为什么,就如同李忠盛的鬼迷心窍:有人问我你究竟是哪里好 这么多年我还忘不了 春风再美也比不上你的笑 没见过你的人不会明了,说了那么多一方面是因为no money,一方面是确实感觉vs code + vim适合自己。虽然最近fleet出了预览版,但我目前使用下来看的话,还是打不过vs code的。

配置

外观配置

  • vscode-icons

文件图标

  • Noctis

vs code主题

前端

前端我主要从事vue开发,目前在看一些react,虽然vs code自带了一些html特性,但要用起来顺手,还是需要一些额外的插件来实现的,我的vs配置文件会在文末附上

  • Atuo Rename Tag Auto Close Tag Bracket Pair Colorizer 2

自动重命名,自动闭合,括号匹配这些插件已经成为了vs code的内置特性,不必再安装,目前我的vs版本是1.72.2

  • Atuo Import Path Intellisense

自动引入,会自动查找文件路径并添加import语句,这个功能吧,感觉有时候不错,但它是按照相对路径引入,要写绝对路径的话,需要自己更改。路径只能提示。

  • Better Comments

注释强调,我主要用来高亮显示 TODO,有时候自己会忘掉一些空函数

  • JavaSript(ES6) code snippets

es6提示

  • CSS Peek DotENV EditorConfig for VS Code EsLint Prettier Sass SCSS Formatter

代码格式化,.env文件识别,sass提示等等

  • Git Graph GitLens - Git supercharged

git辅助

  • Vue Language Feature(Volar) Vue VSCode Snippets TypeScript Vue Plugin(Volar)

Vue3开发辅助插件

  • Translate Variable VSCode Neovim

中英文翻译,变量起名难的时候可以中文变英文;neovim,我自己比较喜欢使用vim按键绑定,所以基本上使用编辑器都会查看有没有vim查看,‘Neovim’ 和 vim插件差不多,但是Neovim可以使用neovim的配置文件.

最后,附上我的vs code配置文件

  • settings.json
{"workbench.startupEditor": "newUntitledFile",// "editor.formatOnType": true,// "editor.formatOnSave": true,// "terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","editor.accessibilityPageSize": 18,"editor.fontSize": 16,"sync.gist": "bf12b62d5049f783784084522e7dbd69","terminal.external.windowsExec": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\","editor.letterSpacing": 1,"editor.lineHeight": 30,"terminal.integrated.rendererType": "dom","workbench.activityBar.visible": true,"workbench.iconTheme": "vscode-icons","editor.renderControlCharacters": false,"go.formatTool": "goimports","files.autoSaveDelay": 10000,"files.exclude": {"**/.classpath": true,"**/.project": true,"**/.settings": true,"**/.factorypath": true},"editor.fontFamily": "'Cartograph Mono CF','Cascadia Code',Consolas, 'MesloLGS NF','Courier New', monospace","editor.fontLigatures": true,"editor.codeActionsOnSave": {},"editor.fontWeight": "500","workbench.preferredDarkColorTheme": "Noctis Sereno","workbench.preferredHighContrastColorTheme": "Noctis Sereno","workbench.preferredLightColorTheme": "Noctis Sereno","terminal.integrated.fontSize": 16,"terminal.integrated.fontWeight": "500","[dart]": {"editor.formatOnSave": true,"editor.formatOnType": true,"editor.rulers": [80],"editor.selectionHighlight": false,"editor.suggest.snippetsPreventQuickSuggestions": false,"editor.suggestSelection": "first","editor.tabCompletion": "onlySnippets","editor.wordBasedSuggestions": false},"terminal.explorerKind": "external","terminal.external.osxExec": "iTerm.app","[html]": {"editor.defaultFormatter": "vscode.html-language-features"},"editor.renderWhitespace": "none","[vue]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"leetcode.endpoint": "leetcode-cn","leetcode.workspaceFolder": "/Users/crackzj/.leetcode","vsicons.dontShowNewVersionMessage": true,"javascript.updateImportsOnFileMove.enabled": "never","dart.previewLsp": true,"html.format.contentUnformatted": "",// "vetur.format.options.useTabs": true,//vim"vim.easymotion": true,"vim.incsearch": true,"vim.useSystemClipboard": true,"vim.useCtrlKeys": false,"vim.hlsearch": true,"vim.statusBarColors.normal": ["#8FBCBB", "#434C5E"],"vim.statusBarColors.insert": "#BF616A","vim.statusBarColors.visual": "#B48EAD","vim.statusBarColors.visualline": "#B48EAD","vim.statusBarColors.visualblock": "#A3BE8C","vim.statusBarColors.replace": "#D08770","vim.statusBarColors.commandlineinprogress": "#007ACC","vim.statusBarColors.searchinprogressmode": "#007ACC","vim.statusBarColors.easymotionmode": "#007ACC","vim.statusBarColors.easymotioninputmode": "#007ACC","vim.statusBarColors.surroundinputmode": "#007ACC","vim.insertModeKeyBindings": [{"before": ["j", "j"],"after": [""]}],"vim.normalModeKeyBindingsNonRecursive": [{"before": ["", "d"],"after": ["d", "d"]},{"before": [""],"commands": [":nohl"]}],"vim.leader": "","vim.handleKeys": {"": false,"": false},"[typescript]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"workbench.editor.untitled.hint": "hidden","[javascript]": {"editor.defaultFormatter": "vscode.typescript-language-features"},"go.toolsManagement.autoUpdate": true,"vim.normalModeKeyBindings": [{"before": ["£"],"after": ["#"]},// {//     "before": [":"],//     "commands": [//         "workbench.action.showCommands",//     ]// },{"before": ["", "m"],"commands": ["bookmarks.toggle"]},{"before": ["", "b"],"commands": ["bookmarks.list"]},{"before":[""],"commands": [":nohl",]},{"before": ["leader", "w"],"commands": ["workbench.action.files.save",]}],"workbench.colorCustomizations": {"statusBar.background": "#8fbcbb","statusBar.noFolderBackground": "#8FBCBB","statusBar.debuggingBackground": "#8FBCBB","statusBar.foreground": "#434C5E","statusBar.debuggingForeground": "#434C5E"},"search.followSymlinks": false,"editor.cursorStyle": "line","editor.insertSpaces": false,"editor.lineNumbers": "on","editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-","editor.wordWrap": "off","prettier.arrowParens": "avoid","prettier.useTabs": true,"workbench.colorTheme": "Noctis Sereno","breadcrumbs.enabled": false,"emmet.includeLanguages": {"vue-html": "html","vue":"html","javascript":"html"},"emmet.excludeLanguages": [],"security.workspace.trust.untrustedFiles": "open","git.confirmSync": false,"editor.guides.bracketPairs": "active","editor.bracketPairColorization.enabled": true,"vim.cursorStylePerMode.normal": "block","vim.cursorStylePerMode.insert": "line","vim.highlightedyank.enable": true,"vim.showMarksInGutter": true,"vim.autoSwitchInputMethod.defaultIM": "com.apple.keylayout.ABC","vim.autoSwitchInputMethod.obtainIMCmd": "/usr/local/bin/im-select","vim.autoSwitchInputMethod.switchIMCmd": "/usr/local/bin/im-select {im}","editor.linkedEditing": true,"vim.smartRelativeLine": true,"diffEditor.ignoreTrimWhitespace": false,"editor.guides.indentation": false,"editor.unicodeHighlight.nonBasicASCII": false,"gopls": {"build.env": {"GOOS": "js","GOARCH": "wasm"},"ui.semanticTokens": true  },"vim.autoSwitchInputMethod.enable": true,"terminal.integrated.defaultProfile.osx": "zsh","terminal.integrated.localEchoExcludePrograms": ["vim","vi"],"emmet.triggerExpansionOnTab": true,"emmet.showSuggestionsAsSnippets": true,"editor.minimap.enabled": false,"translateVariable.baiduAppid": "20220722001280219","translateVariable.baiduKey": "B65AGhhxKgnEMVU1LqVD","workbench.layoutControl.enabled": false,"vim.shell": "/bin/zsh","vim.sneak": true,"files.autoSave": "afterDelay","masmtasm.ASM.emulator": "dosbox","vim.enableNeovim": true,"vim.neovimConfigPath": "~/.config/nvim/init.vim","vim.neovimPath": "/opt/homebrew/bin/nvim","vscode-neovim.highlightGroups.highlights": {"Directory": "vim","IncSearch": {"backgroundColor": "theme.editor.findMatchBackground","borderColor": "theme.editor.findMatchBorder"},"Search": {"backgroundColor": "theme.editor.findMatchHighlightBackground","borderColor": "theme.editor.findMatchHighlightBorder"},"Visual": {"backgroundColor": "theme.editor.selectionBackground"},"Conceal": "vim","Substitute": "vim"},"vscode-neovim.neovimExecutablePaths.darwin": "/opt/homebrew/bin/nvim",}
  • user snippets 个人代码片段 vue.json
{"vue:js" :{"prefix": "vue","body": ["","","",""],"description": "vue3 setup javascript"},"vue:ts" :{"prefix": "vue","body": ["","","",""],"description": "vue3 setup typescript"}	
}
  • keybindings.json
// Place your key bindings in this file to override the defaultsauto[]
[{"key": "cmd+h","command": "workbench.action.previousEditor"},{"key": "shift+cmd+[","command": "-workbench.action.previousEditor"},{"key": "cmd+l","command": "workbench.action.nextEditor"},{"key": "shift+cmd+]","command": "-workbench.action.nextEditor"},//neovim//mapping jj{"command": "vscode-neovim.compositeEscape1","key": "j","when": "neovim.mode == insert && editorTextFocus","args": "j"},//neovm end
]

相关内容

热门资讯

在大吉订购APP订购交易亏损被...   近期,不少投资者反映在“大吉订购App”上投资白银、铂金等商品遭遇严重亏损。该平台宣称提供现货订...
铂银壹号APP商品订购交易亏损...   许多中小投资者误以为网上的“商品现货订购”是合规合法的理财渠道,殊不知这背后隐藏着巨大的合规风险...
兴鑫淘金APP贵金属订购交易亏...   白银、贵金属或其他商品类投资,除国家批准的正规期货交易场所及持牌期货公司外,市面上大量第三方交易...
铂银掘金APP无资质的违规平台...   铂银掘金等平台的投资者,往往是被“注册送现金”“充值返现券”“首单免亏”等广告话术吸引,进而下载...
八方淘金APP订购交易不合规,...   “八方淘金APP”“铂银掘金APP”“铂银壹号APP”等软件被指以“现货订购”为名,实际采用高杠...
在指尖订购APP订购商品亏损被...   指尖订购APP这类平台,表面是“订购交易”,实则是披着电商外衣的非法期货陷阱。绝大多数投资者被蒙...
在犀贝易购APP做商品订购交易...   市面上打着“现货投资”“贵金属交易”旗号的APP并不少,但真正合规、受监管的平台并不多。犀贝易购...
易达淘金APP虚假商品订购交易...   易达淘金APP存在严重的虚假宣传与违规交易行为。该平台打着“商品订购”的旗号,实则通过不合规的交...
大浪淘金APP白银订购亏损被骗...   大浪淘金APP最隐蔽的套路,在于其完全封闭的内盘交易系统。表面上,它宣称与国际贵金属市场接轨;实...
一品好购APP上订购白银出现亏...   一品好购APP原名“一品订购”,运营方为上海宝智未来信息技术有限公司。近期不少投资者反映在该平台...
九州订购APP贵金属订购投资骗...   九州订购APP正通过抖.音、快手、今日头条等平台大量投放投资广告,用“5元起投”“充值返现”“0...
坚锅淘金APP交易软件并不正规...   当前,市面上大量所谓的“现货商城订购”交易软件,早已偏离了正常的实物商品买卖,演变为高杠杆、高手...
斗金订购APP贵金属期货交易骗...   斗金订购APP的投资者往往被铺天盖地的广告宣传所诱导——注册即送现金、充值返现券等看似诱人的福利...
警惕!云启购APP违规经营,披...   "5元起投、充值返现、稳赚不赔"——这些诱人的广告语背后,可能是一个精心设计的金融陷阱。  近期...
量子淘金APP贵金属投资不合规...   "4元起投""充值返券""月入过万"——这些极具诱惑力的广告语在短视频平台、社交软件上铺天盖地。...
鑫汇智投APP贵金属商品订购骗...   鑫汇智投APP非法期货投资骗局,受害者在投资过程中根本不懂交易,也不去研究和验证这个平台是否正规...
矅光智策APP平台违规经营非法...   矅光智策APP对外宣称是“商城订购”“现货交易”,但查询其经营范围,并未显示具备开展现货期货交易...
黄金珠宝怎么选?内侧刻字都代表... 潮新闻客户端 记者 马焱 通讯员 任倩影 9月8日下午,“云游杭州 乐购金秋”——“浙城·浙放心”活...
原创 冰... 最近全球国债市场正在上演魔幻一幕: 美债、日债、欧债遭遇猛烈抛售,收益率冲到几十年新高,美国财政部都...
日韩股市开盘表现分化 上证报中国证券网讯 9月9日,日韩股市开盘表现分化,韩国综合指数开盘上涨0.26%,报6972.87...