Skip to content

vscode插件和配置

插件

  • Flutter
  • Awesome Flutter Snippets - 代码片段快捷
  • Flutter Widget Snippets - 又一个代码片段快捷
  • Code Runner(可在终端窗口使用:code 项目文件夹名 打开vscode进行开发)
  • Comment Translate(翻译注释)
  • Flutter GetX Generator - 猫哥(GetX 项目代码生成工具)
  • Awesome Flutter Snippets - Nash Ramdial(快捷代码插件)
  • IntelliJ IDEA Keybindings - (快捷键导包等等)

配置

打开配置文件

命令行模式下 cmd + shift + p 输入 install code 搜索

自动应用提示

特别是大量的 const 提示警告

js
"editor.codeActionsOnSave": {
    "source.fixAll": true // 自动修复 all
},

折叠配置文件

这样资源管理器文件列表就干净了

js
"explorer.fileNesting.enabled": true,
  "explorer.fileNesting.patterns": {
    "pubspec.yaml": ".packages, pubspec.lock, .flutter-plugins, .flutter-plugins-dependencies, .metadata, analysis_options.yaml, dartdoc_options.yaml"
},

括号线条高亮

全局设置

text
@id:editor.bracketPairColorization.enabled @id:editor.guides.bracketPairs

创作不易请尊重他人劳动成果,未经授权禁止转载!
Released under the MIT License.