settings.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "Lua.codeLens.enable": false,
  3. "Lua.hint.enable": false,
  4. "Lua.completion.enable": false,
  5. "Lua.format.enable": false,
  6. "Lua.hover.enable": false,
  7. "Lua.diagnostics.enable": false,
  8. "Lua.semantic.enable": false,
  9. "Lua.addonManager.enable": false,
  10. "Lua.signatureHelp.enable": false,
  11. "clangd.enable": true,
  12. "clangd.arguments": [],
  13. "liveServer.settings.file": "${workspaceFolder}/coverage/**",
  14. "liveServer.settings.ignoreFiles": [
  15. "**", // 第一步:先忽略所有文件(简单粗暴)
  16. "!coverage/**" // 第二步:用感叹号 ! 把 coverage 目录“救”回来
  17. ],
  18. "C_Cpp.intelliSenseEngine": "disabled",
  19. "C_Cpp.errorSquiggles": "disabled", // 关闭微软的波浪线
  20. "C_Cpp.autocomplete": "disabled", // 关闭微软的自动补全
  21. "C_Cpp.default.compileCommands": "${workspaceFolder}/.vscode/compile_commands.json",
  22. "C_Cpp.codeAnalysis.clangTidy.enabled": false,
  23. "C_Cpp.codeAnalysis.clangTidy.args": [
  24. // "--extra-arg=-ferror-limit=1"
  25. // "--extra-arg=-m32",
  26. "--extra-arg=--target=arm-none-eabi-gcc"
  27. ],
  28. "c-cpp-flylint.enable": false,
  29. "c-cpp-flylint.cppcheck.severityLevels": {
  30. "error": "Error",
  31. "warning": "Warning",
  32. "style": "Information",
  33. "performance": "Information",
  34. "portability": "Information",
  35. "information": "Information"
  36. },
  37. "c-cpp-flylint.cppcheck.extraArgs": [
  38. "--suppress=constParameterPointer",
  39. "--suppress=constParameterCallback",
  40. "--check-level=exhaustive",
  41. "--suppress=variableScope",
  42. "--suppress=unreadVariable",
  43. "--suppress=constVariablePointer",
  44. "--suppress=constParameter",
  45. "--suppress=unusedStructMember",
  46. ],
  47. "makefile.configureOnOpen": false,
  48. "liveServer.settings.port": 5501
  49. }