SPIN autoindent?
fki
Posts: 10
After hacking SPIN code, i sometimes end up with code, that is indented "enough" for beeing correct, but is no longer easy to read. Is there a tool to keep the code functioning and "re-indenting" with the TABS from the preference settings?
Would it be a feature you'd like too? [in the Propeller Tool]
Or are your spin files always looking nice?
Would it be a feature you'd like too? [in the Propeller Tool]
Or are your spin files always looking nice?
Comments
If so, the tool will show you how the code is broken into blocks.
When writing, use the tab stops, and the occasional double or triple space indent. Changes then are generally a coupla key presses to complete.
There is also a keypress combination that will allow you to move entire blocks of code. I forget what that is though. Somebody here will chime in, or we both can search!
I'm not sure what you're asking for here. If it's what I think it is, it would be impossible for the IDE to auto-indent your code for you from a block of left-aligned text, because the indentation is the only syntax cue for where the blocks are in the first place.
Pursuant to potatohead's comment, you can indent/unindent whole chunks of code by selecting multiple lines and pressing TAB to indent, shift-TAB to unindent.
-Phil
Great, obfuscated Spin:)
Okay, yes, I see what you mean.
-Phil