Skip to content
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

Undocumented csharp_new_line_before_while #4899

Closed
euyuil opened this issue Mar 6, 2020 — with docs.microsoft.com · 4 comments
Closed

Undocumented csharp_new_line_before_while #4899

euyuil opened this issue Mar 6, 2020 — with docs.microsoft.com · 4 comments
Assignees
Labels
doc-bug Feedback about errors, omissions, or confusing or conflicting text in an article. Pri2 Medium priority; 25-50th percentile of page views, for example. visual-studio-windows/prod vs-ide-general/tech

Comments

Copy link

euyuil commented Mar 6, 2020

It looks like csharp_new_line_before_while is supported in VS 2019. But it hasn't been documented here.

Based on my testing, setting csharp_new_line_before_while to true will make the following style preferred:

do
{
    // ...
}
while (flag);

If it's set to false, the following style is preferred:

do
{
    // ...
} while (flag);

Would you please add csharp_new_line_before_while to the document if it's available now?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@PRMerger17 PRMerger17 added Pri2 Medium priority; 25-50th percentile of page views, for example. visual-studio-windows/prod vs-ide-general/tech labels Mar 6, 2020
@WilliamAntonRohm WilliamAntonRohm added the doc-bug Feedback about errors, omissions, or confusing or conflicting text in an article. label Mar 6, 2020
@TerryGLee
Copy link
Contributor

@mikadumont FYI on this

@Gav-Brown
Copy link

This setting is also not written to the .editorconfig file if you export from the Visual Studio - Tools - Options - Text Editor - C# - Code Style options dialog. Using VS 16.6.1 (or earlier).

@TerryGLee TerryGLee removed their assignment Jun 12, 2020
@cremor
Copy link

cremor commented Sep 4, 2020

@euyuil Are you sure that this is actually a setting that Visual Studio supports? I've just tested it with VS 2019 version 16.7.2 (the current version at this time) and couldn't get it to work.

I'm also unable to find it in the Roslyn source code (see code search query).

Google leads to a ReSharper documentation page. So I assume this is a ReSharper setting, which would mean it should not be documented here.

@gewarren
Copy link
Member

gewarren commented Oct 2, 2020

This issue was moved to dotnet/docs#20885

@gewarren gewarren closed this as completed Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-bug Feedback about errors, omissions, or confusing or conflicting text in an article. Pri2 Medium priority; 25-50th percentile of page views, for example. visual-studio-windows/prod vs-ide-general/tech
Projects
None yet
Development

No branches or pull requests

8 participants