Keyboard commands

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Grovkillen
Automation Wizard
Posts: 563
Joined: Fri Aug 10, 2012 2:38 pm
Location: Hudiksvall, Sweden
Contact:

Keyboard commands

Post by Grovkillen » Tue Feb 16, 2021 2:12 pm

I'd love to get these keyboard commands for the IDE:

CTRL+D = copy the line you're on right after the first one and place your caret there.
CTRL+C = if no selection; copy the row you're on to clipboard
CTRL+X = if no selection; cut the row you're on to clipboard
CTRL+/ (7) = block comment, if no selection; comment out row
Let>ME=%Script%

Running: 15.0.17
version history

User avatar
JRL
Automation Wizard
Posts: 3378
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: Keyboard commands

Post by JRL » Wed Feb 17, 2021 7:23 pm

CTRL+C = if no selection; copy the row you're on to clipboard
CTRL+X = if no selection; cut the row you're on to clipboard
CTRL+/ (7) = block comment, if no selection; comment out row
I would use these three 100 times a day if they existed. Not sure I understand the first one.

Working from home for the last year. Tepid connection speeds and RDP session to the work computer where I'm writing scripts makes selecting with the mouse and managing to select precisely what I want selected challenging. I do use double click often to select the text between special characters. And triple click will select an entire line. I'd still vote for (is there an election?) Grovkillen's shortcut keys.

Thanks for listening.
Dick

User avatar
Grovkillen
Automation Wizard
Posts: 563
Joined: Fri Aug 10, 2012 2:38 pm
Location: Hudiksvall, Sweden
Contact:

Re: Keyboard commands

Post by Grovkillen » Wed Feb 17, 2021 8:16 pm

Thanks for the vote JRL!
CTRL+D = copy the line you're on right after the first one and place your caret there.
What I mean by this is that you have this scenario:

1:Let>VARIABLE=123
2:Let>ANOTHER|=abc
3:Let>THIRD=1a2vb3c

If you have the caret in the second row (example caret position in red) and press CTRL+D you'll get:

1:Let>VARIABLE=123
2:Let>ANOTHER=abc
3:Let>ANOTHER=abc|
4:Let>THIRD=1a2vb3c

With the caret now at the end of row three (marked green).

This is ideal to use to make multiple calls to a sub routine:

1:GoSub>SubName,SubVar1
2:GoSub>SubName,SubVar2
3:GoSub>SubName,SubVar3
Let>ME=%Script%

Running: 15.0.17
version history

User avatar
JRL
Automation Wizard
Posts: 3378
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: Keyboard commands

Post by JRL » Thu Feb 18, 2021 5:14 am

Grovkillen,
Thank you for the clarification.

User avatar
Grovkillen
Automation Wizard
Posts: 563
Joined: Fri Aug 10, 2012 2:38 pm
Location: Hudiksvall, Sweden
Contact:

Re: Keyboard commands

Post by Grovkillen » Thu Feb 18, 2021 7:55 am

And I'd like to add to this one:
CTRL+/ (7) = block comment, if no selection; comment out row
If selection, uncomment rows if more than 50% of the selected rows are commented.. else comment them all.
Let>ME=%Script%

Running: 15.0.17
version history

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts