Repository navigation
Expand file tree
/
Copy pathsettings.json
More file actions
50 lines (46 loc) · 2.39 KB
/
Copy pathsettings.json
File metadata and controls
50 lines (46 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"editor.formatOnSave": true,
"editor.rulers": [100],
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
// --- formatters: one per language family -------------------------------------------------
"[python]": { "editor.defaultFormatter": "ms-python.black-formatter" },
"[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[css]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[yaml]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"files.trimTrailingWhitespace": false
},
"[lua]": { "editor.defaultFormatter": "JohnnyMorganz.stylua" },
// HTML is not auto-formatted: index.html is a Liquid template, STYLESHEET.html and intro.html
// have whitespace-sensitive <pre> blocks (also listed in dev/config/prettierignore)
"[html]": { "editor.formatOnSave": false },
// LaTeX is edited by hand (main.tex, publications.tex): no formatter
"[latex]": { "editor.formatOnSave": false },
"[makefile]": { "editor.insertSpaces": false, "editor.detectIndentation": false },
// Tool configs live in dev/config/ (not the repo root): the settings above point the extensions at them
"python.defaultInterpreterPath": "${workspaceFolder}/dev/.venv/bin/python",
"python.analysis.extraPaths": ["${workspaceFolder}/dev/.venv/lib/python3.12/site-packages"],
"black-formatter.importStrategy": "fromEnvironment",
"black-formatter.args": ["--config", "${workspaceFolder}/dev/config/pyproject.toml"],
"prettier.configPath": "${workspaceFolder}/dev/config/prettierrc.json",
"prettier.ignorePath": "${workspaceFolder}/dev/config/prettierignore",
"stylua.configPath": "${workspaceFolder}/dev/config/stylua.toml",
"files.associations": { "*.fls": "plaintext" },
// --- generated output: edit the sources, run `make` ------------------------------------------
"files.readonlyInclude": {
"files/*.pdf": true,
"files/*.docx": true
},
"files.exclude": { "**/__pycache__": true },
"search.exclude": {
"dev/.venv": true,
"dev/build": true,
"dev/_site": true,
"linkedin/out": true,
"info": true
}
}