Open nutterb opened 6 years ago
Same issue here.
Microsoft Visual Studio Community 2017 Version 15.8.3 VisualStudio.15.Release/15.8.3+28010.2019 Microsoft .NET Framework Version 4.7.03056 R Tools for Visual Studio 1.3.40517.1016
Also smart indent in R markdown is disabled.
So much demanding features compared to Rstudio.
I'm probably about to embarrass myself by describing something that's already been fixed, but here goes.
While setting up my editor I set RTools > Editor Options > R > Advanced > Smart indent > By function argument = On
When writing code I expected to see
But RTVS showed me something much less readable.
Another example, when making a plot I would like to type
But RTVS displays
Notice that in this case, even after closing the parentheses for the
ggplot
function, the indentation still lines up strangely (seven spaces in front ofgeom_point
instead of four). This is different behavior than if I put all of theggplot
argument on one lineIf there's an option or configuration I'm missing, please let me know.
Similar issues
https://github.com/Microsoft/RTVS/issues/3751 https://github.com/Microsoft/RTVS/issues/2641 https://github.com/Microsoft/RTVS/issues/1004