An Idea Exchange for SAS software and services

Comments
by Regular Contributor
3 weeks ago

Great suggestion! Also would come in handy when running a large section of code and needing to change a variable at the top. I would use this shortcut frequently.

 

I have seen this ability in other editors/IDEs. Something simple like the arrow keys or home/end would be nice.

by SAS Super FREQ
2 weeks ago

Thanks for the suggestion.  Please help me understand the idea...

 

Currently, if there is a selection and you press the left arrow, the caret moves to the beginning of the selection and the selection is cleared.  If there is a selection and you press the right arrow, the caret moves to the end of the selection and the selection is cleared.  Are you asking for a way to edit the text within the selection without losing the selection?

 

If you aren't concerned about retaining the selection (and the fact that it overwrites your clipboard and doesn't behave well when no selection), you can accomplish "quoting the entire selection with one set of comment markers" with a keyboard macro such as the following:

 

commentKeyboardMacro.png

 

Casey

 

by Regular Contributor
2 weeks ago

I was mistaken; I thought if you had a selection highlighted and used the arrow keys, it would only impact the location where the cursor was last, not the selection start/end points.

 

Thanks, @CaseySmith!

by SAS Employee fifthand57th
2 weeks ago
Status changed to: Implemented
 
Idea Statuses
Top Liked Authors