VSC 解决红底线问题

话不多说  设置里代码奉上

{
  "editor.minimap.enabled": false,
  "workbench.iconTheme": "vscode-icons",
  "editor.fontSize": 15,
  "files.autoSave": "onFocusChange",
  "emmet.triggerExpansionOnTab": true,
  "emmet.showSuggestionsAsSnippets": true,
  "editor.renderIndentGuides": false,
  "files.associations": {
      "*.vue": "html"
  },
  "powermode.enabled": true,
  "background.useFront": false,
  "background.useDefault":false,
  // "background.customImages": ["file:///c:/123.jpg"],
  "background.customImages": ["file:///D:/工具/音乐视频照片/林允儿.jpg"],
  "terminal.integrated.rendererType": "dom",
  "workbench.colorTheme": "Visual Studio Dark",
  "background.enabled": true,
  "html.format.enable": false,
  "editor.wordWrap": "on",
  "code-runner.saveAllFilesBeforeRun": true,
  "code-runner.runInTerminal":true,
      "code-runner.fileDirectoryAsCwd": true,
      "files.autoSaveDelay": 200,
  "search.followSymlinks": false,
"python.jediEnabled": true,
"python.autoComplete.addBrackets": true,
"window.zoomLevel": 0,

"python.linting.pylintArgs": [
//   "--load-plugins",
//   "pylint_django",
  "--errors-only",
  "--disable=E0401"
],

"vsicons.dontShowNewVersionMessage": true,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false

}

  这个是全部得设置代码

起关键作用的是

  "--errors-only",
  "--disable=E0401"

原文地址:https://www.cnblogs.com/wjohh/p/10732280.html