软件使用辅助

vscode

vscode常用插件

  • Chinese (Simplified) (简体中文) Language Pack for Visual Studio Code
  • Go
  • Prettier - Code formatter
    代码格式化
  • vscode-icons
    美化打开的文件夹图标
  • vscode-styled-componen
    语法高亮
  • styled-components-snipp
    代码片段提示
  • json
  • Path Intellisense
    自动填充文件名
  • Auto Close Tag
  • Auto Rename Tag
  • Class autocomplete for HTML
  • ESLint
  • HTML CSS Support
  • HTML CSS Support

vscode配置文件

{
  // edit
  "editor.codeActionsOnSave": {
    "source.organizeImports": true,
    "source.fixAll": true
  },
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.lineNumbers": "on",
  "editor.linkedEditing": true,
  "editor.tabSize": 2,
  "editor.wordWrap": "bounded",
  "editor.wordWrapColumn": 80,

  // 光标
  "editor.cursorBlinking": "blink",
  "editor.cursorWidth": 0,
  "editor.cursorSmoothCaretAnimation": true,
  // 查找
  "editor.find.addExtraSpaceOnTop": true,
  "editor.find.seedSearchStringFromSelection": "selection",
  "editor.find.autoFindInSelection": "multiline",
  "editor.fontSize": 16,
  // 格式化
  "editor.formatOnPaste": true,
  "editor.formatOnSave": true,
  "editor.formatOnSaveMode": "file",
  "editor.formatOnType": true,
  // 差异编辑
  "diffEditor.codeLens": true,
  "diffEditor.ignoreTrimWhitespace": false,
  //   缩略图
  "editor.minimap.autohide": true,
  "editor.minimap.size": "proportional",
  //   建议
  "editor.quickSuggestions": {
    "other": "on",
    "comments": "off",
    "strings": "off"
  },
  "editor.quickSuggestionsDelay": 10,
  "editor.snippetSuggestions": "inline",
  "editor.suggest.filterGraceful": true,
  "editor.suggest.insertMode": "insert",
  "editor.suggest.localityBonus": true,
  "editor.suggest.shareSuggestSelections": true,
  "editor.suggest.showStatusBar": true,
  //   文件
  "files.autoSave": "afterDelay",
  "files.autoSaveDelay": 1000,
  "files.encoding": "utf8",
  "files.eol": "auto",
  "files.insertFinalNewline": true,
  "files.simpleDialog.enable": false,
  "files.trimFinalNewlines": true,
  "files.trimTrailingWhitespace": true,
  //   工作台
  "workbench.list.smoothScrolling": true,
  //   外观
  "workbench.startupEditor": "none",
  "workbench.iconTheme": "vscode-icons",
  "workbench.tree.renderIndentGuides": "always",
  //   编辑管理器管理
  "workbench.editor.limit.enabled": true,
  "workbench.editor.limit.excludeDirty": true,
  //   窗口
  "window.restoreWindows": "none",
  //   资源管理器
  "explorer.compactFolders": false,
  "explorer.openEditors.visible": 0,
  //   调试
  "debug.console.fontSize": 16,
  //   终端
  "terminal.integrated.fontSize": 16,
  //   git
  "git.terminalAuthentication": false,
  "github.gitAuthentication": true,
  //   go
  "go.autocompleteUnimportedPackages": true,
  "go.gocodeAutoBuild": true,
  "go.formatTool": "goimports",
  "go.lintTool": "golint",
  "go.useCodeSnippetsOnFunctionSuggest": true,
  "go.useCodeSnippetsOnFunctionSuggestWithoutType": false,
  "go.useLanguageServer": true,
  "[go]": {
    "editor.defaultFormatter": "golang.go",
    "editor.formatOnSave": true,
    "editor.codeActionsOnSave": {
      "source.organizeImports": true
    },
    "editor.snippetSuggestions": "inline",
    "editor.suggest.snippetsPreventQuickSuggestions": false
  },
  "[go.mod]": {
    "editor.formatOnSave": true,
    "editor.codeActionsOnSave": {
      "source.organizeImports": true
    }
  },
  "gopls": {
    "ui.completion.usePlaceholders": true,
    "ui.diagnostic.staticcheck": false
  },
  //
  //
  //
  "workbench.colorTheme": "Visual Studio Dark",
  "hexeditor.columnWidth": 16,
  "hexeditor.showDecodedText": true,
  "hexeditor.defaultEndianness": "little",
  "hexeditor.inspectorType": "aside",
  "less.compile": {
    "out": "../css/"
  },
  "redhat.telemetry.enabled": true

  //   "explorer.openEditors.minVisible": 10
}
"[go]": {
    "editor.defaultFormatter": "golang.go",
    "editor.formatOnSave": true,
    "editor.codeActionsOnSave": {
      "source.organizeImports": true
    },
    "editor.snippetSuggestions": "inline",
    "editor.suggest.snippetsPreventQuickSuggestions": false
  },
  "[go.mod]": {
    "editor.formatOnSave": true,
    "editor.codeActionsOnSave": {
      "source.organizeImports": true
    }
  },
  "gopls": {
    "ui.completion.usePlaceholders": true,
    "ui.diagnostic.staticcheck": false
  },
  "go.languageServerFlags": ["-rpc.trace", "serve", "--debug=localhost:6060"],
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容