settings.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "javascript.preferences.importModuleSpecifier": "relative",
  3. "typescript.tsdk": "node_modules/typescript/lib",
  4. "search.exclude": {
  5. "**/*.user.js": true,
  6. "**/BetterYTM.css": true,
  7. },
  8. "files.associations": {
  9. "*.env": "dotenv",
  10. "*.env.template": "dotenv",
  11. },
  12. "editor.tabSize": 2,
  13. "json.schemas": [
  14. {
  15. "fileMatch": ["**/locales.json"],
  16. "url": ".vscode/schemas/locales.schema.json"
  17. },
  18. {
  19. "fileMatch": ["**/require.json"],
  20. "url": ".vscode/schemas/require.schema.json"
  21. },
  22. {
  23. "fileMatch": ["**/resources.json"],
  24. "url": ".vscode/schemas/resources.schema.json"
  25. },
  26. {
  27. "fileMatch": ["**/translations/*-*.json"],
  28. "url": ".vscode/schemas/translation.schema.json"
  29. },
  30. ],
  31. // requires extension: fabiospampinato.vscode-highlight
  32. "highlight.regexes": {
  33. "(TODO(\\((\\s|\\d|\\w|[,.-_+*&])+\\))?:?)": { // TODO: or TODO or TODO(xy): but not todo or todo:
  34. "backgroundColor": "#ed0",
  35. "color": "black",
  36. "overviewRulerColor": "#ed0",
  37. },
  38. "((//\\s*|/\\*\\s*)?#region ([^\\S\\r\\n]*[\\(\\)\\w,.\\-_&@+#*'\"/:]+)*)": { //#region foo: (@bar):
  39. "backgroundColor": "#35b5d0",
  40. "color": "#000",
  41. "overviewRulerColor": "#35b5d0",
  42. },
  43. "((<!--\\s*)?</?\\{\\{[A-Z_-]+\\}\\}>(\\s*-->)?)": { // <!-- <{{FOO}}> --> and <!-- </{{FOO}}> --> or <{{BAR}}> and </{{BAR}}>
  44. "backgroundColor": "#9af",
  45. "overviewRulerColor": "#9af",
  46. "color": "#000",
  47. },
  48. "(#?(DEBUG|DBG)#?)": { // #DEBUG or DEBUG or #DBG or #DBG#
  49. "backgroundColor": "#ff0",
  50. "color": "blue",
  51. "overviewRulerColor": "#ff0",
  52. },
  53. "(IMPORTANT:)": { // IMPORTANT:
  54. "backgroundColor": "#a22",
  55. "color": "#fff",
  56. },
  57. "(FIXME:)": { // FIXME:
  58. "backgroundColor": "#a22",
  59. "color": "#fff",
  60. "overviewRulerColor": "#752020",
  61. },
  62. },
  63. }