Recent

Author Topic: Code editor - Adding empty row  (Read 4844 times)

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Code editor - Adding empty row
« on: December 22, 2010, 06:41:02 pm »
When i press return to move codeline down it indents little to right. This forces me to also move the code back to proper indentation (2 spaces always) and in time when you have to do this again and again it gets frustrating.


Code: [Select]
  end else if n='imgTile' then begin
    playState:=psTile;
    ^ <- caret just before 'p', or at the beginning of line
Press return causes:
Code: [Select]
  end else if n='imgTile' then begin

      playState:=psTile;
It should simply move the line down with same indentation it was before and i'd be satisfied.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12180
  • Debugger - SynEdit - and more
    • wiki
Re: Code editor - Adding empty row
« Reply #1 on: December 23, 2010, 06:58:05 pm »
You have several options:
- in enviroment / options / editor / general: disable "auto indent"
  and in codetools general (0.9.29) is indentation too.

But they are both either always or never

- you can place the caret at the leftmost pos (pos 1) of the lower line, before pressing return, then it moves the line down without indent. But you need to move back up

- You can insert a new line with ctrl-n, then no indent happens, but the caret stays where it is.

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: Code editor - Adding empty row
« Reply #2 on: December 27, 2010, 01:41:52 am »
Not exactly sure but its not happening with all code. I disabled "Context sensitive" from indent options though in hopes that it fixes something. I'm suspecting it did some guessing based on other code in the file... Anyway i haven't had the issue bother me at all today.

 

TinyPortal © 2005-2018