Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Untab in nano: move a block of code to the left

Tags:

linux

nano

How can I "Untab", move a block of code to the left in nano?

In most gui editors shift+tab works but can't find anything for nano.

like image 883
Orlo Avatar asked Dec 31 '13 01:12

Orlo


People also ask

How do you Untab a block of code?

The "Unindent" command corresponds to the Unindent selection entry in the Advanced sub menu of the Edit Menu . It may be called by using the keyboard shortcut "Shift+Tab". Its action is to remove the tabulation in front of each selected line if there is such a character.


1 Answers

With an english keyboard-layout Ctrl + Alt + { should work to unindent tabs (untab) in Nano Text Editor.

If you use a keyboard-layout which needs Alt-Gr for curly braces, use ESC then { instead.

like image 51
Sven Rojek Avatar answered Sep 30 '22 01:09

Sven Rojek