BetterDevilChance/.vscode/settings.json

90 lines
2.6 KiB
JSON

// These are Visual Studio Code settings that should apply to this particular repository.
{
// ----------------
// Vanilla settings
// ----------------
// This matches the Airbnb JavaScript style guide.
"editor.rulers": [100],
"editor.tabSize": 2,
"files.associations": {
"*.anm2": "xml", // anm2 files are just XML files.
"*.dat": "json", // Nearly all mods save JSON to the "save#.dat" file.
".env*": "shellscript", // e.g. ".env.example" is the same as ".env".
},
// We want to always use "lf" to be consistent with all platforms.
"files.eol": "\n",
// Automatically removing all trailing whitespace when saving a file.
"files.trimTrailingWhitespace": true,
// Configure glob patterns for excluding files and folders in full text searches and quick open.
"search.exclude": {
"**/*.mp3": true,
"**/*.png": true,
"**/*.wav": true,
"**/dist/": true,
"**/node_modules/": true,
},
// ------------------
// Extension settings
// ------------------
// Use Prettier to format "cspell.json".
"cSpell.autoFormatConfigFile": true,
// -----------------
// Language settings
// -----------------
// By default, VSCode will not automatically fill-in function arguments.
"javascript.suggest.completeFunctionCalls": true,
"typescript.suggest.completeFunctionCalls": true,
// By default, VSCode will prefer non-relative paths for deeply nested files.
"javascript.preferences.importModuleSpecifier": "relative",
"typescript.preferences.importModuleSpecifier": "relative",
// Automatically run the formatter when certain files are saved.
"[javascript]": {
"editor.codeActionsOnSave": ["source.fixAll.eslint"],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2,
},
"[typescript]": {
"editor.codeActionsOnSave": ["source.fixAll.eslint"],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2,
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2,
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2,
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2,
},
"[xml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2,
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2,
},
}