Join Now

Hvordan finder man matchede do/end i sin program kode?

by Super Contributor on ‎05-26-2016 06:53 AM (395 Views)

Ifølge dokumentationen til SAS display manager og SAS Enterprise guide skal man kunne finde en matchet "do" ved at trykke Alt+] når cursoren står over "end". Jeg har aldrig fået det til at virke, men har netop opdaget at det virker hvis jeg skifter over til engelsk tastatur. Kan det virke på et dansk tastatur?

Comments
by Trusted Advisor
on ‎05-26-2016 08:13 AM

Hello Jacob,

 

I'm sorry, I don't speak Danish, but I tested it on my German keyboard, had the same issue and then found a solution:

 

  1. Make sure Enhanced Editor is the active window.
  2. Menu: Tools --> Options --> Enhanced Editor Keys
  3. Select category "Navigation" from the drop-down list
  4. Scroll down in the list of commands and select "Move cursor to matching DO/END keyword"
  5. Click "Assign keys..."
  6. On my computer it said that Alt+8 and Alt+9 were assigned to this command, but in fact this was not true!*
    Click into the field "Press new shortcut key:"
  7. Press Alt+9 or whatever (unused) shortcut key you wish to assign to this command.
  8. On my computer it said "Currently assigned to: None" (i.e., no conflict).
    Click the "Assign" button. Now Alt+9 (or the shortcut you chose) appears in the "Current keys" field (in addition to the old entries, if any, which might even include Alt+9).
  9. Click "OK".
  10. Click "Close" in the Enhanced Editor Keys window.

Now the newly assigned shortcut should work.

 

Thanks for giving me this idea!

 

* Optionally you can remove the old assigned shortcut keys for this command in step 6 above (select shortcut and click "Remove" button), ideally before assigning the new key.

by Super Contributor
on ‎05-26-2016 10:16 AM

Same for me: it say Alt+8 and Alt+9 were assigned, but in fact it wasn't. If I unassign them, and then reassign them it works. Thanks for the tip.