TIP: Shift text of selected lines or current line to left or right in NetBeans 6.0 editor

In any NetBeans 6.0 editor you can shift the text of selected lines or the current line to the left or right using the following key bindings:

Alt+Shift+Left (Ctrl+Shift+Left on Mac) - shift the text of selected lines or the current line to the left by one indent unit

Alt+Shift+Right (Ctrl+Shift+Right on Mac) - shift the text of selected lines or the current line to the right by one indent unit

The number of spaces used for shifting is controlled by the Tools:Options:Editor:Indetation:Number of Spaces per Indent: option.

 

Comments:

Or you could just use TAB and Shift+TAB :-)

Posted by Claudiu on November 11, 2007 at 07:12 PM PST #

There is a small difference. When using TAB, you still have to select a portion of the current line, in order to shift one line.

Posted by Claudiu on November 11, 2007 at 07:13 PM PST #

TAB + SHIFT :)

Posted by güzel sözler on April 02, 2008 at 12:46 PM PDT #

Post a Comment:
Comments are closed for this entry.
About

sandipchitale

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today