Bug 946 : Tab Blocks in IDE
Last modified: 2009-01-22 08:35




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
Kevin
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-10-09 07:36
DESCRIPTION:
Tabbing behaviour in the Processing IDE should indent block of code.

INSTRUCTIONS:
Highlight a block of text in the processing IDE.
Press tab. All the text is replaced by a tab.

EXPECTED RESULTS:
The lines highlighted would be indented.

PROCESSING VERSION:
0148

Most other code editors follow this behaviour. I know Processing is aimed
at beginners, but this problem makes it very easy for people to learn
indenting correctly and makes new people create messier code that it is
hard for them to read.

Existing behaviour can be replicated by just highlighting text and pressing
DELETE, then tab. I'd suggest that the tab behaviour causes considerably
more problems than necessary.
Additional Comment #1 From fry 2008-10-09 08:33
or just use ctrl-] and ctrl-[. it's under the edit menu.
Additional Comment #2 From Kevin 2009-01-22 01:43
I learned the new shortcut for this, but was just reminded about it again
by this post on the forum. This shortcut seems to be one that people don't
discover naturally. I think if it's easy to add the behaviour from other
IDEs, then it would ease a small amount of pain for many people.

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Suggestions;action=display;num=1193096861;start=0
Additional Comment #3 From Kevin 2009-01-22 08:35
Oops.

Have just been informed this has been implemented in 1.0 - nice to see!