Skip to content

Commit cef7762

Browse files
rkeithhilliSazonov
authored andcommitted
Add standard set of vscode workspace setting files (PowerShell#5457)
* Add standard set of vscode workspace setting files Add an extensions.json file that will prompt folks to install extensions that are recommended for this workspace (c++, c#, powershell, cmake (editing syntax) and markdown linter. Add settings.json to start to configure C# syntax, PoweShell trim trailing whitespace and configure the markdown lint extension. Update launch.json to provide ability to debug PowerShell scripts. * Clean up grammar * Instruct VSCode to ensure a final newline. If this is not wanted for certain file types, we can restrict this option to only specified file types.
1 parent 1962c27 commit cef7762

4 files changed

Lines changed: 51 additions & 4 deletions

File tree

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ gen
5757
# Per repo profile
5858
.profile.ps1
5959

60-
#VS Code files
61-
.vscode
62-
6360
# macOS
6461
.DS_Store
6562

@@ -68,4 +65,3 @@ TestsResults*.xml
6865

6966
# Resharper settings
7067
PowerShell.sln.DotSettings.user
71-

.vscode/extensions.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"ms-vscode.cpptools",
6+
"ms-vscode.csharp",
7+
"ms-vscode.PowerShell",
8+
"twxs.cmake",
9+
"DavidAnson.vscode-markdownlint"
10+
]
11+
}

.vscode/launch.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,24 @@
1818
"request": "attach",
1919
"justMyCode": false,
2020
"processId": "${command:pickProcess}"
21+
},
22+
{
23+
"type": "PowerShell",
24+
"request": "launch",
25+
"name": "PowerShell Launch Current File",
26+
"script": "${file}",
27+
"args": [],
28+
"cwd": "${file}"
29+
},
30+
{
31+
"type": "PowerShell",
32+
"request": "launch",
33+
"name": "PowerShell Launch Current File w/Args Prompt",
34+
"script": "${file}",
35+
"args": [
36+
"${command:SpecifyScriptArgs}"
37+
],
38+
"cwd": "${file}"
2139
}
2240
]
2341
}

.vscode/settings.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"editor.tabSize": 4,
4+
"editor.insertSpaces": true,
5+
6+
"files.insertFinalNewline": true,
7+
8+
// Based on current .markdownlist.json settings:
9+
// https://github.com/PowerShell/PowerShell/blob/master/.markdownlint.json
10+
"markdownlint.config": {
11+
"MD004": false,
12+
"MD024": false,
13+
"MD033": false,
14+
"MD034": false,
15+
"MD038": false,
16+
"MD042": false
17+
},
18+
19+
"[powershell]": {
20+
"files.trimTrailingWhitespace": true
21+
}
22+
}

0 commit comments

Comments
 (0)