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

Auto-indentation doesn't work when pasting or moving lines #1860

Closed
ghost opened this issue Apr 21, 2018 · 1 comment
Closed

Auto-indentation doesn't work when pasting or moving lines #1860

ghost opened this issue Apr 21, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 21, 2018

I've noticed that VS Code supports automatically indenting code when pasting code or when moving lines around (Ctrl+Shift+/) via the editor.autoIndent setting, but for some reason this doesn't work with C++ files.

I've noticed that this is disabled by default for C and C++ files, but even enabling the setting doesn't seem to do anything. What would be involved in enabling this behaviour?

@sean-mcmanus
Copy link
Contributor

I seem to recall it was disabled due to the annoying/buggy behavior it caused with C++ but there isn't an easy fix using the regular expression mechanism that works in other languages. I think we're tracking this with #883 .

@github-actions github-actions bot locked and limited conversation to collaborators Oct 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant