Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 07-13-2021, 09:52 AM   #1
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 5,393
Default 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.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-13-2021, 10:06 AM   #2
Fabian
Human being with feelings
 
Fabian's Avatar
 
Join Date: Sep 2008
Location: Sweden
Posts: 6,943
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
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...
Fabian is offline   Reply With Quote
Old 07-13-2021, 10:12 AM   #3
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 5,393
Default

Shift+Tab would be great too
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-13-2021, 03:17 PM   #4
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 3,955
Default

Shift+Tab is already implemented in the IDE:

cfillion is offline   Reply With Quote
Old 07-14-2021, 10:50 AM   #5
Fabian
Human being with feelings
 
Fabian's Avatar
 
Join Date: Sep 2008
Location: Sweden
Posts: 6,943
Default

Quote:
Originally Posted by cfillion View Post
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.
Fabian is offline   Reply With Quote
Old 07-14-2021, 12:25 PM   #6
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 14,418
Default

Ah yes, shift+tab is incomplete, adding.
Justin is offline   Reply With Quote
Old 07-14-2021, 12:57 PM   #7
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 5,393
Default

Nice, thnx
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:30 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.