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

Block comment cursor goes to beginning of line instead of respecting the indentation #49039

Open
vsfeedback opened this issue Oct 29, 2020 · 0 comments
Assignees
Labels
Area-IDE Concept-Continuous Improvement Developer Community The issue was originally reported on https://developercommunity.visualstudio.com help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[regression] [worked-in:16.5.0]
Current behavior:
In .cs files, when using a block comment, the cursor goes to the beginning of next line with each new line so it aligns with /* instead of aligning with the line that precedes it.

/* hit ↵ here
↑ cursor starts at the arrow for this line and all subsequent lines

*/

If I manually indent the first line then start a new line, the cursor on the new line again goes to the beginning of that new line instead of aligning with the indented line.

/*
    manually indented line ↵
the cursor goes to the beginning of the line and aligns with `/*`
*/

Expected behavior:
Each new line should automatically align with the line that precedes it.

/* ↵
    this line is automatically/manually indented. ↵
    this line is automatically indented to align with previous line ↵

    ↑ cursor should be here ↵
    ↑ cursor should be here ↵

    on the next line, I add a new indentation level
        this line is manually indented. ↵
        this line is automatically indented to align with previous line ↵
        ↑ cursor should be at that level for all subsequent lines
*/

Note:

  • I have the option "Insert * at the start of new lines when writing /* */ comments" disabled.
  • I have disabled all extensions, reset all settings, ran the program in safe mode, and the behavior still persists.

Original Comments

(no comments)

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Oct 29, 2020
@jinujoseph jinujoseph added Continuous Improvement Developer Community The issue was originally reported on https://developercommunity.visualstudio.com and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 4, 2020
@jinujoseph jinujoseph added this to the Backlog milestone Nov 4, 2020
@jinujoseph jinujoseph added the help wanted The issue is "up for grabs" - add a comment if you are interested in working on it label Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Concept-Continuous Improvement Developer Community The issue was originally reported on https://developercommunity.visualstudio.com help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Projects
None yet
Development

No branches or pull requests

5 participants