Skip to content

Commit 2770d26

Browse files
committed
Add Visual Studio configuration
1 parent 8104823 commit 2770d26

File tree

4 files changed

+90
-0
lines changed

4 files changed

+90
-0
lines changed

.vscode/extensions.json

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

.vscode/launch.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?linkid=830387 for the documentation about the launch.json format
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "Test (via Pester)",
7+
"type": "PowerShell",
8+
"request": "launch",
9+
"script": "Invoke-Pester",
10+
"args": [
11+
"-Path '${workspaceFolder}' -Output Detailed"
12+
]
13+
},
14+
{
15+
"name": "Run (via PowerShell)",
16+
"type": "PowerShell",
17+
"request": "launch",
18+
"script": "Start-Process -FilePath '${workspaceFolder}/Configure TeamViewer AD Connector.bat' -WorkingDirectory '${workspaceFolder}' -Wait",
19+
"args": []
20+
}
21+
]
22+
}

.vscode/settings.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
// Place your settings in this file to overwrite default and user settings.
3+
"editor.formatOnSave": true,
4+
"files.eol": "\r\n",
5+
"files.encoding": "utf8",
6+
"files.insertFinalNewline": true,
7+
"files.trimTrailingWhitespace": true,
8+
"powershell.codeFolding.showLastLine": false,
9+
"powershell.buttons.showPanelMovementButtons": true,
10+
"powershell.codeFormatting.preset": "Stroustrup",
11+
"powershell.codeFormatting.pipelineIndentationStyle": "NoIndentation",
12+
"powershell.codeFormatting.ignoreOneLineBlock": false,
13+
"powershell.codeFormatting.addWhitespaceAroundPipe": true,
14+
"powershell.codeFormatting.alignPropertyValuePairs": true,
15+
"powershell.codeFormatting.autoCorrectAliases": true,
16+
"powershell.codeFormatting.avoidSemicolonsAsLineTerminators": true,
17+
"powershell.codeFormatting.newLineAfterCloseBrace": true,
18+
"powershell.codeFormatting.newLineAfterOpenBrace": true,
19+
"powershell.codeFormatting.trimWhitespaceAroundPipe": true,
20+
"powershell.codeFormatting.useConstantStrings": true,
21+
"powershell.codeFormatting.useCorrectCasing": true,
22+
"powershell.codeFormatting.whitespaceAfterSeparator": true,
23+
"powershell.codeFormatting.whitespaceAroundOperator": true,
24+
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
25+
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
26+
"powershell.codeFormatting.whitespaceBetweenParameters": true,
27+
"powershell.codeFormatting.whitespaceInsideBrace": true,
28+
"[markdown]": {
29+
"editor.tabSize": 2,
30+
"editor.trimAutoWhitespace": false,
31+
"files.trimTrailingWhitespace": false
32+
},
33+
"markdownlint.config": {
34+
"MD009": false,
35+
"MD024": false,
36+
"MD025": false,
37+
"MD028": false
38+
},
39+
"[yaml]": {
40+
"editor.tabSize": 2
41+
}
42+
}

.vscode/tasks.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558 for the documentation about the tasks.json format
3+
"version": "2.0.0",
4+
"tasks": [
5+
{
6+
"label": "Lint (via PSScriptAnalyzer)",
7+
"type": "shell",
8+
"command": "Invoke-ScriptAnalyzer -Path '${workspaceFolder}' -Severity Information, Warning, Error -ExcludeRule PSReviewUnusedParameter -Recurse",
9+
"group": {
10+
"kind": "build",
11+
"isDefault": true
12+
},
13+
"presentation": {
14+
"reveal": "always"
15+
},
16+
"problemMatcher": []
17+
}
18+
]
19+
}

0 commit comments

Comments
 (0)