Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B
[PLUGIN WANTED] Automatic white space adder
Mad Scientist:
I have been just learning python and when finding i need to add an if statement to a long list thought it would be nice if there was a macro/plugin that could be used to add whitespace. For test commands in the file I was thinking something like:
--- Code: ---//Some code
...
...
code
...
...
--- End code ---
--- Code: ---//Add the text commands to the file
...
>> SPACE 2
...
code
...
>> SPACE END
...
--- End code ---
--- Code: ---//Indented code
...
...
code
...
...
--- End code ---
Or a simpile right click/menu option would be nice to.
Some options for it that would be nice are add/remove('>>' or '<<'), space or tab('SPACE' or 'TAB') and how many.
Thanks in advance for any time used to do this. :D
byo:
Maybe you mean that:
Select source you want to indent and then TAB - adds one tab in front of each selected line, alt+Tab removes one tab for each line if there's any
Mad Scientist:
Ya thanks thats what I was looking for. If only it worked for spaces and Alt Tab wasnt already taken by windows :x Well then i am looking for someone to add spaces and a differnet key combo then alt - tab for windows.
stahta01:
--- Quote from: Mad Scientist on March 01, 2007, 02:03:36 am ---Ya thanks thats what I was looking for. If only it worked for spaces and Alt Tab wasnt already taken by windows :x Well then i am looking for someone to add spaces and a differnet key combo then alt - tab for windows.
--- End quote ---
Verify your settings, it should work for spaces.
"settings" -> "editor"
"General Settings" verify "Use TAB Character" is unchecked.
Tim S
Mad Scientist:
O thanks for showing me the options but I was looking more for adding one space at a time not a tab indent with spaces. I like to indent with 2 spaces and have tab be 8 spaces long to keep the files looking right with other programs and with code blocks. :(
Navigation
[0] Message Index
[#] Next page
Go to full version