8000 Add description of recommended settings for VS Code by iSazonov · Pull Request #4054 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Add description of recommended settings for VS Code #4054

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ To run the spellchecker, follow the steps as follows:

## Contributing to Code

### Code Editor

You should use the multi-platform [Visual Studio Code (VS Code)][use-vscode-editor].

### Building and testing

#### Building PowerShell
Expand Down Expand Up @@ -302,4 +306,5 @@ Once you sign a CLA, all your existing and future pull requests will be labeled
[open-issue]: https://github.com/PowerShell/PowerShell/issues
[up-for-grabs]: https://github.com/powershell/powershell/issues?q=is%3Aopen+is%3Aissue+label%3AUp-for-Grabs
[semantic linefeeds]: http://rhodesmill.org/brandon/2012/one-sentence-per-line/
[PowerShell-Docs]: https://github.com/powershell/powershell-docs/
[PowerShell-Docs]: https://github.com/powershell/powershell-docs/
[use-vscode-editor]: ../docs/learning-powershell/using-vscode.md#editing-with-visual-studio-code
18 changes: 17 additions & 1 deletion docs/learning-powershell/using-vscode.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ To exit Visual Studio Code, **File->Exit**.

If you wish to use a specific installation of PowerShell with Visual Studio Code, you will need to add a new variable to your user settings file.

1. Click **File -> Preferences -> User Settings**
1. Click **File -> Preferences -> Settings**
2. Two editor panes will appear.
In the right-most pane (`settings.json`), insert the setting below appropriate for your OS somewhere between the two curly brackets (`{` and `}`) and replace *<version>* with the installed PowerShell version:

Expand All @@ -71,6 +71,22 @@ If you wish to use a specific installation of PowerShell with Visual Studio Code
3. Replace the setting with the path to the desired PowerShell executable
4. Save the settings file and restart Visual Studio Code

#### Configuration settings for Visual Studio Code

By using the steps in the previous paragraph you can add configuration settings in `settings.json`.

We recommend the following configuration settings for Visual Studio Code:

```json
{
"csharp.suppressDotnetRestoreNotification": true,
"editor.renderWhitespace": "all",
"editor.renderControlCharacters": true,
"omnisharp.projectLoadTimeout": 120,
"files.trimTrailingWhitespace": true
Copy link
Member

Choose a reason for hiding this comment

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

should we just limit this to resx and powershell script files for now or are all the c# files clean?

Copy link
Collaborator Author
@iSazonov iSazonov Jun 20, 2017

Choose a reason for hiding this comment

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

C# files was fixed in #3001 by lzybkr.

But we stiil have about 350 files with tabs.

}
```

Debugging with Visual Studio Code
----
### No-workspace debugging
3A3A Expand Down
0