在这里插入图片描述

问题描述:安装vetur代码高亮插件,代码编写无代码提示

下面配置可以解决:热更新/编辑器背景图/代码提示/字体大小

{
  // #每次保存的时候自动格式化
  "editor.formatOnSave": true,
  "editor.fontSize": 16,
  "files.autoSave": "afterDelay",
  "background.useDefault": false,
  "background.customImages": [
    // "C:/Users/75986/Pictures/Saved Pictures/24.jpg"
    // " https://api.ixiaowai.cn/api/api.php"
    // "https://api.ixiaowai.cn/mcapi/mcapi.php"
    // (mc酱动漫)
    " https://api.ixiaowai.cn/gqapi/gqapi.php"
  ],
  "background.style": {
    "content": "''",
    "pointer-events": "none",
    "position": "absolute",
    // "top":"200px",
    "width": "100%",
    "background-position": "left",
    "height": "100%",
    "z-index": "99999",
    "background-repeat": "no-repeat",
    "background-size": "100%,100%",
    "opacity": 0.28,
  },
  "workbench.activityBar.visible": true,
  "editor.tabSize": 2,
  "editor.tabCompletion": "on",
  "git.ignoreMissingGitWarning": true,
  "background.styles": [
    {},
    {},
    {}
  ],
  "workbench.colorCustomizations": {},
  "open-php-html-js-in-browser.selectedBrowser": "Chrome",
  "git.autofetch": true,
  "launch": {
    "configurations": [],
    "compounds": []
  },
  "debug.console.closeOnEnd": true,
  "vetur.grammar.customBlocks": {
    "docs": "md",
    "i18n": "json"
  },
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_attributes": "force-expand-multiline"
    },
    "prettyhtml": {
      "printWidth": 100,
      "singleQuote": false,
      "wrapAttributes": false,
      "sortAttributes": false
    }
  },
  "editor.suggestSelection": "first",
  "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
  "editor.accessibilitySupport": "off",
  "git.defaultCloneDirectory": "",
  "workbench.colorTheme": "Weidows",
  "diffEditor.ignoreTrimWhitespace": false,
  "fileheader.configObj": {
    "createFileTime": true,
    "language": {
      "languagetest": {
        "head": "/$$",
        "middle": " $ @",
        "end": " $/",
        "functionSymbol": {
          "head": "/** ",
          "middle": " * @",
          "end": " */"
        },
        "functionParams": "js"
      }
    },
    "autoAdd": false,
    "autoAddLine": 100,
    "autoAlready": true,
    "annotationStr": {
      "head": "/*",
      "middle": " * @",
      "end": " */",
      "use": false
    },
    "headInsertLine": {
      "php": 2,
      "sh": 2
    },
    "beforeAnnotation": {
      "文件后缀": "该文件后缀的头部注释之前添加某些内容"
    },
    "afterAnnotation": {
      "文件后缀": "该文件后缀的头部注释之后添加某些内容"
    },
    "specialOptions": {
      "特殊字段": "自定义比如LastEditTime/LastEditors"
    },
    "switch": {
      "newlineAddAnnotation": true
    },
    "supportAutoLanguage": [],
    "prohibitAutoAdd": [
      "json"
    ],
    "folderBlacklist": [
      "node_modules",
      "文件夹禁止自动添加头部注释"
    ],
    "prohibitItemAutoAdd": [
      "项目的全称, 整个项目禁止自动添加头部注释, 可以使用快捷键添加"
    ],
    "moveCursor": true,
    "dateFormat": "YYYY-MM-DD HH:mm:ss",
    "atSymbol": [
      "@",
      "@"
    ],
    "atSymbolObj": {
      "文件后缀": [
        "头部注释@符号",
        "函数注释@符号"
      ]
    },
    "colon": [
      ": ",
      ": "
    ],
    "colonObj": {
      "文件后缀": [
        "头部注释冒号",
        "函数注释冒号"
      ]
    },
    "filePathColon": "路径分隔符替换",
    "showErrorMessage": false,
    "writeLog": false,
    "wideSame": false,
    "wideNum": 13,
    "functionWideNum": 0,
    "CheckFileChange": false,
    "createHeader": false,
    "useWorker": false,
    "designAddHead": false,
    "headDesignName": "random",
    "headDesign": false,
    "cursorModeInternalAll": {},
    "openFunctionParamsCheck": true,
    "functionParamsShape": [
      "{",
      "}"
    ],
    "functionBlankSpaceAll": {},
    "functionTypeSymbol": "*",
    "typeParamOrder": "type param",
    "customHasHeadEnd": {},
    "throttleTime": 60000,
    "functionParamAddStr": "",
    "NoMatchParams": "no show param"
  },
  "fileheader.cursorMode": {},
  "workbench.editor.enablePreview": false,
  "editor.minimap.showSlider": "always",
  "emmet.preferences": {},
  "[vue]": {
    "editor.defaultFormatter": "octref.vetur"
  },
  "editor.fontLigatures": false,
}

虽然太明白所有配置的意义,但是,可以解决问题,懂的可以多指教。

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐