George
George

Reputation: 41

Auto-indent in RStudio won't go to new line

I have looked everywhere on RStudio, here, and googled it.

My auto indent does not seem to work.

I have tried tab and ctrl-tab (and several other keys). The opening curly brace { does not seem to matter. Is there some way to restore the auto indent feature?

Upvotes: 3

Views: 3882

Answers (1)

Robert
Robert

Reputation: 2231

I ran into the same problem, and solved it as follows:

  1. Select all code in the active window
  2. From the Code menu, select "Reindent Lines"

Hope this helps.

Upvotes: 2

Related Questions