Author Topic: How disable source scrolling while typing ?  (Read 8702 times)

Offline cledou

  • Single posting newcomer
  • *
  • Posts: 8
How disable source scrolling while typing ?
« on: December 23, 2012, 10:07:41 am »
There is a new feature in recent release of code::blocks that give me seasickness: while typing, the code is scrolling up and down to have the line in the middle of the screen.
How can I disable this ?
Have a merry Christmas and happy new year.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: How disable source scrolling while typing ?
« Reply #1 on: December 23, 2012, 03:11:21 pm »
How can I disable this ?
Go to the EditorTweaks settings and set the scrolling to -1 (disabled).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline cledou

  • Single posting newcomer
  • *
  • Posts: 8
Re: How disable source scrolling while typing ?
« Reply #2 on: December 26, 2012, 09:05:46 am »
Ok, it's works. Thanks.
Unfortunatly, it doesn't keep this setting after closing C::B.
Where is the file keeping this settings ? Can I delete it to force a fresh copy ?

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: How disable source scrolling while typing ?
« Reply #3 on: December 26, 2012, 03:49:48 pm »
Unfortunatly, it doesn't keep this setting after closing C::B.
This bug was fixed... what version are you using?

Offline cledou

  • Single posting newcomer
  • *
  • Posts: 8
Re: How disable source scrolling while typing ?
« Reply #4 on: December 26, 2012, 03:59:29 pm »
SVN 8598 on Windows 7 32 bits (+ MinGW32)
The only 'unusual stuff' is that my installation folder is on D: (D:\Program Files\CodeBlocks)
« Last Edit: December 26, 2012, 04:02:34 pm by cledou »

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: How disable source scrolling while typing ?
« Reply #5 on: December 26, 2012, 04:12:09 pm »
Please upgrade from RC2 to 12.11 stable (or even better, build a snapshot from the trunk ;)).

Explanation (if you were curious):
Sorry, RC2 is rev 8598, but the missing initialization was fixed in rev 8599 (fix arrived one commit too late :().  This means that in RC2, this one setting (for buffering the caret position in the editor) is a random number at startup, and only reads your config when the editor settings window is opened.
You may want to disable the EditorTweaks plugin until you either create your own build from the trunk, or the next RC is released.

Offline cledou

  • Single posting newcomer
  • *
  • Posts: 8
Re: How disable source scrolling while typing ?
« Reply #6 on: December 26, 2012, 04:21:44 pm »
Ok. Works fine with stable 12.11.
Thanks.