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

Pressing ctrl+shift+enter in same cases results incorrect indentation #1762

Closed
zardoy opened this issue Aug 25, 2022 · 0 comments
Closed

Pressing ctrl+shift+enter in same cases results incorrect indentation #1762

zardoy opened this issue Aug 25, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@zardoy
Copy link
Contributor

zardoy commented Aug 25, 2022

Steps to reproduce:

  1. Open in web/desktop untitled vue file with following content:
<script>
if (true) {
}
</script>
  1. Place cursor after if (true) {
  2. Press enter
  3. Press ctrl+enter
  4. Press ctrl+shift+enter

Actual: cursor at the beginning of the line
Expected: cursor stays at the same character position

You can do the same for js untitled file, it works as expected (but not jsx with content from above)

To be honest, this is kind of annoying behavior.

I believed there is something actionable in language configuration.
If this is a problem with VSCode or there is no easy fix, I'll be forced to write a hack with another extension :/

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants