Indentation like Visual Studio

Completed

I've been using Visual Studio for as long as I can think back, but now Rider convinced me to step over (which I don't regret).

There is one thing that drives me crazy, though, and that is what pressing tab/shift tab does when your text is not aligned with indentation already.

Example:
// There are 7 spaces before CODE, and my caret is in front of the first letter. Indentation is set to 4 spaces.
{
CODE;
}

Visual Studio:
{
CODE; // after shift tab (aligns with 1x4 spaces)
CODE; // after tab (aligns with 2x4 spaces)
}
Rider:
{
CODE; // after shift tab (just removes 4 spaces... not what I would expect!)
CODE; // after tab (just adds 4 spaces... also not what I would want!)
}

So essentially, when we're not aligned with proper indentation, pressing tab or shift tab should align to the closest indentation in that direction, instead of just adding/removing 4 spaces. To me, this sounds like something that could be implemented in no time. And given that this is the default behavior in Visual Studio, I believe it should at least be an available option. Is this an issue for anyone else, or just me?

0
2 comments

Hello and thanks for the feedback!

I've created an issue in Youtrack, please feel free to upvote it https://youtrack.jetbrains.com/issue/RIDER-8025

0
Avatar
Permanently deleted user

Great, thanks!

0

Please sign in to leave a comment.