Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create New Shortcut Key 1

Status
Not open for further replies.

DonaZ

Technical User
Oct 10, 2007
41
US
I want to create a new F key(shortcut key)using F12 or AltF12 to do the following:
copy a line, move selected line to the end of the line, and paste.

This will save me time so that I do not have to highlight the line, click on copy, go to next line, click on paste.

Once the line is pasted then I could comment selected section of code with Line Comments.

I tried:
smark;wcopy;right;wpaste. This does not work.
I am using SAS in Windows so smark does not work

Any ideas??

Thank you for your time
 
Why not use the Macro recording feature in the SAS editor?

Select Tools-->record new macro

Then click the line you want and copy (ctrl+c) then go to the next line and paste (ctrl+p)

Then
Select Tools --> stop recording

Name your macro and assign the key that want (F12)

Viola! you have your shortcut.

Klaz
 
It works. Thank you very much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top