 |
|
|
07-13-2021, 09:52 AM
|
#1
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 5,393
|
IDE: reverse indentation with Ctrl+Tab (DONE)
When I code, I indent as most people. This is easy by selecting lines and hitting Tab which adds two spaces to each line.
Now sometimes, I come to the conclusion, that I need to remove a loop as I realized, I don't need it.
So I remove the loop but the lines that were in the loop are still intended as if the loop was there.
So I would like to select these lines, hit ctrl+Tab to remove two spaces in the beginning of each line, so the indentation is aligned correctly.
This would be awesome. Currently I need to remove them by hand line by line.
|
|
|
07-13-2021, 10:06 AM
|
#2
|
Human being with feelings
Join Date: Sep 2008
Location: Sweden
Posts: 6,943
|
Quote:
Originally Posted by Meo-Ada Mespotine
So I would like to select these lines, hit ctrl+Tab to remove two spaces in the beginning of each line, so the indentation is aligned correctly.
|
Yeah, this would be great. But in all IDEs I have ever used (only Windows), Shift+Tab is what unindents. Ctrl+Tab switches tabs.
So... in the usual Reaper way, some way to set the keystroke for this would be great.
__________________
// MVHMF
I never always did the right thing, but all I did wasn't wrong...
|
|
|
07-13-2021, 10:12 AM
|
#3
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 5,393
|
Shift+Tab would be great too
|
|
|
07-13-2021, 03:17 PM
|
#4
|
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 3,955
|
Shift+Tab is already implemented in the IDE:
|
|
|
07-14-2021, 10:50 AM
|
#5
|
Human being with feelings
Join Date: Sep 2008
Location: Sweden
Posts: 6,943
|
Quote:
Originally Posted by cfillion
Shift+Tab is already implemented in the IDE:

|
Oh... how embarrassing
But as trange thing... it requires a selection. Hitting Tab and then Shift+Tab does not unindent. First some selection has to be made on the line for Shift+Tab to unindent. This is confusing.
So the request has now changed to have Shift+Tab to also work on a single line with no selection. Specifically, if I hit Tab, and then immediately do Shift+Tab, I should get back to how it was before hitting Tab.
__________________
// MVHMF
I never always did the right thing, but all I did wasn't wrong...
Last edited by Fabian; 07-14-2021 at 10:57 AM.
|
|
|
07-14-2021, 12:25 PM
|
#6
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 14,418
|
Ah yes, shift+tab is incomplete, adding.
|
|
|
07-14-2021, 12:57 PM
|
#7
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 5,393
|
Nice, thnx
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 11:30 PM.
|