Skip to content

Add standard set of vscode workspace setting files - #5457

Merged
Ilya (iSazonov) merged 3 commits into
PowerShell:masterfrom
rkeithhill:rkeithhill/improve-vscode-setup
Nov 15, 2017
Merged

Ilya (iSazonov) merged 3 commits into
PowerShell:masterfrom
rkeithhill:rkeithhill/improve-vscode-setup

Conversation

@rkeithhill

Copy link
Copy Markdown
Collaborator

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.

BTW I'm hoping as more people on the team use the VSCode extension , it will help get more attention to fixing some lingering issues in the PS extension. Dogfooding FTW!!

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.

BTW I'm hoping as more people on the team use the VSCode extension , it will help get more attention to fixing some lingering issues in the PS extension.  Dogfooding FTW!!
@rkeithhill

Keith Hill (rkeithhill) commented Nov 15, 2017 •

Copy link
Copy Markdown
Collaborator Author

BTW I should have added, the markdown linter integration into VSCode is really, really nice. Much better to see issues while you are editing the markdown files than to wait for the Pester test to find them. :-)

Comment thread .vscode/settings.json
"editor.tabSize": 4,
"editor.insertSpaces": true,
"markdownlint.config": {
"MD004": false,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add comment why these are being excluded?

@rkeithhill
Keith Hill (rkeithhill) force-pushed the rkeithhill/improve-vscode-setup branch from 4ce7828 to 2f3ec05 Compare November 15, 2017 04:21

@SteveL-MSFT Steve Lee (SteveL-MSFT) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

If this is not wanted for certain file types, we can restrict this option to only specified file types.
Comment thread .vscode/extensions.json
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub don't like Json comments. I see https://stackoverflow.com/questions/244777/can-comments-be-used-in-json

Should we remove the comments or convert in another form?

@rkeithhill Keith Hill (rkeithhill) Nov 15, 2017 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps but it didn't stop the VSCode team from checking in json with comments: https://github.com/Microsoft/vscode/blob/master/.vscode/extensions.json
https://github.com/Microsoft/vscode/blob/master/tslint.json

And that comment is the default comment added when you run the Extensions: Configure Recommended Extensions command in VSCode.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If VS Code understands it, I'll merge.

@iSazonov

Ilya (iSazonov) commented Nov 15, 2017 •

Copy link
Copy Markdown
Collaborator

Reopen the PR to restart CI Appveyor

@iSazonov
Ilya (iSazonov) merged commit cef7762 into PowerShell:master Nov 15, 2017
@iSazonov

Copy link
Copy Markdown
Collaborator

Keith Hill (@rkeithhill) Many thanks for your contribution!

@rkeithhill
Keith Hill (rkeithhill) deleted the rkeithhill/improve-vscode-setup branch May 29, 2019 15:20
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants