Add standard set of vscode workspace setting files (#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.
This commit is contained in:
Keith Hill 2017-11-15 00:18:37 -07:00 committed by Ilya
parent 1962c273c6
commit cef7762d18
4 changed files with 51 additions and 4 deletions

4
.gitignore vendored
View file

@ -57,9 +57,6 @@ gen
# Per repo profile
.profile.ps1
#VS Code files
.vscode
# macOS
.DS_Store
@ -68,4 +65,3 @@ TestsResults*.xml
# Resharper settings
PowerShell.sln.DotSettings.user

11
.vscode/extensions.json vendored Normal file
View file

@ -0,0 +1,11 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"ms-vscode.cpptools",
"ms-vscode.csharp",
"ms-vscode.PowerShell",
"twxs.cmake",
"DavidAnson.vscode-markdownlint"
]
}

18
.vscode/launch.json vendored
View file

@ -18,6 +18,24 @@
"request": "attach",
"justMyCode": false,
"processId": "${command:pickProcess}"
},
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File",
"script": "${file}",
"args": [],
"cwd": "${file}"
},
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File w/Args Prompt",
"script": "${file}",
"args": [
"${command:SpecifyScriptArgs}"
],
"cwd": "${file}"
}
]
}

22
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,22 @@
// Place your settings in this file to overwrite default and user settings.
{
"editor.tabSize": 4,
"editor.insertSpaces": true,
"files.insertFinalNewline": true,
// Based on current .markdownlist.json settings:
// https://github.com/PowerShell/PowerShell/blob/master/.markdownlint.json
"markdownlint.config": {
"MD004": false,
"MD024": false,
"MD033": false,
"MD034": false,
"MD038": false,
"MD042": false
},
"[powershell]": {
"files.trimTrailingWhitespace": true
}
}