Bug #13048 2008-01-31 22:46
swoogan
Auto/Smart indent does nothing
I'm using the latest nightly build, and auto/smart indent don't seem to do anything. When I newline inside a code block (ie: if or while statement) it always goes to the beginning of the line.
- Category
- Application::Editor
- Group
- Status
- Open
- Close date
- Assigned to
History
Sounds like a config error. Try resetting all the settings, and working with a default config. Just rename the config files:
Start->Run->%APPDATA%
Rename the folder codeblocks to something else.
Test it out, and see if it helps.
That fixed the problem. I read that I shouldn't install over the release version, but I thought that just meant the install directory, I didn't realize it effected the settings as well. Sorry about that.
This bug hit me a few weeks ago, I was wondering what caused it as I didn't do anything 'strange'. (Worked before, didn't change to new build)
Suddenly I figured out today. I was working on a cross platform project, and thus changed my lineendings from "CR LF" -> "CR"
When I do that, the autoindent stops working. Changing it back and autoindent works again.
(I guess the bug is around in line 2448 in cbeditor.cpp)
OS: Windows XP
I too was working on a cross platform project and changed the line-endings to CR. When I deleted the settings, I did not change them again.