Skip to content

Commit d232d7c

Browse files
mmalerbajosephperrott
authored andcommitted
chore: add vscode settings to format on save w/ correct settings (#15389)
1 parent 28b33aa commit d232d7c

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,4 +257,5 @@
257257
# Misc
258258
/* @jelbourn
259259
/.github/** @jelbourn
260+
/.vscode/** @mmalerba
260261
/src/* @jelbourn

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ node_modules
2626

2727
# IDEs
2828
/.idea
29-
/.vscode
29+
/.vscode/launch.json
3030
/*.iml
3131

3232
# misc

.vscode/extensions.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
5+
// List of extensions which should be recommended for users of this workspace.
6+
"recommendations": [
7+
"ms-vscode.vscode-typescript-tslint-plugin",
8+
"xaver.clang-format",
9+
],
10+
}

.vscode/settings.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"[javascript]": {
3+
"editor.formatOnSave": true,
4+
},
5+
"[typescript]": {
6+
"editor.formatOnSave": true,
7+
},
8+
// Please install https://marketplace.visualstudio.com/items?itemName=xaver.clang-format to take advantage of `clang-format` in VSCode.
9+
// (See https://clang.llvm.org/docs/ClangFormat.html for more info `clang-format`.)
10+
"clang-format.executable": "${workspaceRoot}/node_modules/.bin/clang-format",
11+
"files.watcherExclude": {
12+
"**/.git/objects/**": true,
13+
"**/.git/subtree-cache/**": true,
14+
"**/node_modules/**": true,
15+
"**/bazel-out/**": true,
16+
"**/dist/**": true,
17+
},
18+
"search.exclude": {
19+
"**/node_modules": true,
20+
"**/bower_components": true,
21+
"**/bazel-out": true,
22+
"**/dist": true,
23+
},
24+
"git.ignoreLimitWarning": true,
25+
}

0 commit comments

Comments
 (0)