Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to shift highlighted lines left or right in Notepad++

Tags:

notepad++

In the Eclipse IDE (and many others I would imagine) there is a simple shortcut to shift highlighted lines either right or left by one tab length.

I have looked through all of the TextFX in Notepad++ and only found the ability to shift highlighted lines up or down. Is there a built in way to shift highlighted lines left or right?

Thanks for reading

like image 892
ikottman Avatar asked Jul 20 '10 21:07

ikottman


People also ask

How do I move highlighted text to the left?

To move the text to the left, press Shift+Tab.

How do you Shift a line in Notepad ++?

to move a line up or down using the cursor keys, please press ctrl+shift+up or ctrl+shift+down in notepad++.

How do you indent highlighted text?

You can use ctrl+ ] to indent a line (or highlighted block), and ctrl + [ to unindent.


2 Answers

Shift highlighted lines to the right one tab length by pressing the tab key. Shift them to the left by pressing shift-tab.

When lines are highlighted, the tab key doesn't replace them with a tab. It shifts them left/right instead.

like image 60
mkClark Avatar answered Sep 22 '22 19:09

mkClark


Tab indents, shift-tab unindents.

like image 42
sunetos Avatar answered Sep 20 '22 19:09

sunetos