Author Topic: Adaptive Formatting and R  (Read 877 times)


  • Senior Community Member
  • Posts: 1902
  • Hero Points: 184
  • Text
Adaptive Formatting and R
« on: August 28, 2018, 05:21:51 pm »
In a given R file with the attached stats, even though most of the file has 2 character indenting, when I hit tab I always get 4.
Actually, the file is all indented with 2 characters, but continued lines sometimes have more indenting.

I've attached some sample code.
Line 9 This line will indent by 4           
Line 10 This line will indent by 6  - unless you put a #Comment at the end of line

Actually, place cursor on line 136 and hit tab.
Now do the same for 9, 10, 11, etc

it keeps increasing


  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5177
  • Hero Points: 428
Re: Adaptive Formatting and R
« Reply #1 on: August 29, 2018, 12:36:02 am »
The file you posted is only 32 lines (no line 136).

While I couldn't reproduce the issue with the indent increasing in an odd way, I did notice a problem where the indent always indents one too many if the statement ends with a function call. That's fixed for beta 3.