"auto indent selection " broken...
-
For unknown reason my "auto indent selection" is not working well.
Is there a way to "select all" and totally rebuild the layout so all lines start at left side , position zero?
Hence no indentation at all...
-
Strg+A to select all, then Strg+I to indent the current selected code.
-
@Christian-Ehrlicher That does not work , it does auto indentation - I need to remove all indentation .
-
@AnneRanch
Untested, but doesn't Shift+Tab unindent the current selection? Select everything and hit it repeatedly if you want to unindent till the left margin/"position zero". -
@JonB SOrry, no response, only "creator not responding" after a while. I can actually see where the indentation is broken and tried to "fix" it there.
I am beginning to see a pattern after about 2500 lines of code , things just do not behave as expected... not sure where the problem is. -
Breaking up your code into several files would help. Also, having the code in a revision control system like git has saved me many times when I've made a bad edit. This allows you to easily see changes between commits (commit often, not just once everything is working). It may seem like a hassle to get started but will save you time and frustration in the long run.
-
@mchinand Good points, but it is little too late to split the .cpp file . I keep local copy , but do it very seldom. I copy the entire entre project folder , but again it maybe too late. I am surprised that there is no way to "restore " this. I may try another IDE /banana like Eclipse...
I will try git....