Some little improvements to the editor
Posted: Sun Sep 05, 2010 9:16 pm
As purebasic has a neat indenting feature, I propose to expand it a little bit more;
The editor knows about fold-able code using keywords, and it is able to identify the beginning and end of a code section, the proof is that if you leave the cursor over an if/endif for/next, etc. it can highlight it (it does underline the keywords).
So instead of me having to select manually the section, why not add a function that can select the whole section automatically using the underlying code-block feature and indent it automatically at the press of a keystroke like the F4 does for fold-able code.
This is obvious when one want to indent a whole procedure, and have to scroll the editor to select the entire code within the procedure.
Also another nice addition to the indention could be to get rid of the blank trailing spaces that remain so often at the end of a line.
Yeah I sound lazy, but bear in mind that my hands hurt when typing for too long, and those features I mention could save a lot of typing.
The editor knows about fold-able code using keywords, and it is able to identify the beginning and end of a code section, the proof is that if you leave the cursor over an if/endif for/next, etc. it can highlight it (it does underline the keywords).
So instead of me having to select manually the section, why not add a function that can select the whole section automatically using the underlying code-block feature and indent it automatically at the press of a keystroke like the F4 does for fold-able code.
This is obvious when one want to indent a whole procedure, and have to scroll the editor to select the entire code within the procedure.
Also another nice addition to the indention could be to get rid of the blank trailing spaces that remain so often at the end of a line.
Yeah I sound lazy, but bear in mind that my hands hurt when typing for too long, and those features I mention could save a lot of typing.