FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Suggestions
   Software Suggestions
(Moderator: fry)
   Better Tabbing
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Better Tabbing  (Read 456 times)
Markavian

Markavian+iTX WWW
Better Tabbing
« on: Apr 23rd, 2004, 2:30pm »

This would be a really uesful function:
 
When editing text, if you highlight 1 or more lines and then Press Tab, the selected lines should have a tab/2 spaces inserted at the start.
 
If Shift+Tab is pressed, while 1 or more lines are selected, a tab/2 spaces should be removed from the start of the line.
 
This will really help formatting large blocks of code after copy/pasting them about.
 
Thanks,
- Markavian
« Last Edit: Apr 23rd, 2004, 2:31pm by Markavian »  
narain


Re: Better Tabbing
« Reply #1 on: Apr 27th, 2004, 5:52pm »

I second that. I use this feature in EditPlus, and it's extremely useful.
 
Another thought: The auto-indent feature should take into account open or close braces in the last line to adjust the amount of indent inserted in the new line. Auto-indenting is pretty neat that way.
 
It shouldn't be hard to implement: I think it's just about counting the number of open and close braces in the last line (the line you hit [Enter] from), and adding, um, (num_open - num_close) to the amount of indent.
 
Pages: 1 

« Previous topic | Next topic »