-
Notifications
You must be signed in to change notification settings - Fork 130
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
Reindent Lines commands don't work #435
Comments
Might be because we have no indentation rules in |
I did some testing and I believe this is because we have no indentation rules. Indentation after If we did add indentation after pipes, we would run into an additional complication: It seems like VS Code would indent them differently as they were typed than it would indent them when running |
As discussed on Twitter, {styler} first needs to support reindention only, which is not the case with |
Thanks @lorenzwalthert. At present the VS Code command |
Thanks @andycraig. Sorry, I did not read this thread properly and concluded from our Twitter discussion that styler was the bottleneck. If you want to use styler to build your own command for indenting lines, at least you now have the tools to do so. Doesn't look like there is much progress on the Microsoft language server side of this issue at the moment... |
This issue is stale because it has been open for 365 days with no activity. |
unstale |
This issue is stale because it has been open for 365 days with no activity. |
Are there any workarounds for this, other than "open up Rstudio to do the reindent in there instead"? |
Describe the bug
Commands
Reindent Lines
,Reindent Selected Lines
do nothing.To Reproduce
temp.R
with the following content:Reindent Lines
; nothing happensReindent Selected Lines
; nothing happensContrast with JavaScript:
temp.js
with the following content:Reindent Lines
; middle line is indented as expectedEDIT: For Javascript, it also works if only lines 2-3 are selected and the
Reindent Selected Lines
command is used.Notes
Not sure if this is a vscode-R bug or a VS Code bug, as there seem to be quite a few VS Code issues related to reindenting, e.g., microsoft/vscode#19847
The text was updated successfully, but these errors were encountered: