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

Incorrect indentation inside of comments #208232

Closed
aiday-mar opened this issue Mar 20, 2024 · 1 comment
Closed

Incorrect indentation inside of comments #208232

aiday-mar opened this issue Mar 20, 2024 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-autoindent Editor auto indentation issues on-unit-test

Comments

@aiday-mar
Copy link
Contributor

  • Consider the following TS example
/**
indentation done for {
*/
  • Place the cursor after the opening brace
  • Click enter
  • The next line will be indented although it doesn't make sense to do an indentation here
Screen.Recording.2024-03-20.at.18.50.27.mov
@aiday-mar aiday-mar added bug Issue identified by VS Code Team member as probable bug editor-autoindent Editor auto indentation issues labels Mar 20, 2024
@aiday-mar aiday-mar self-assigned this Mar 20, 2024
@aiday-mar
Copy link
Contributor Author

We should look at the standard token type, and when we detect we are inside of a comment, we no longer do the indentation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug editor-autoindent Editor auto indentation issues on-unit-test
Projects
None yet
Development

No branches or pull requests

1 participant