Author Topic: Where can I modify generate-debug key shortcut  (Read 2900 times)

flethuseo

  • Senior Community Member
  • Posts: 177
  • Hero Points: 2
Where can I modify generate-debug key shortcut
« on: September 26, 2014, 04:10:49 PM »
This code used to be in Slickedit 2013 in the tags.e file, where I was able to modify the shortcut. Where can I do this in 2014?

   } else if (command=='generate-debug') {
      if (word=="") {
         msg=nls("&Generate Debug Statement");
      } else {
         msg=nls("&Generate Debug Statement for %s",word);
      }
   } else {
      if (word=="") {
         msg=nls("Go to &Definition");
      } else {
         msg=nls("Go to &Definition of %s",word);
      }
   }

Ted

Sandra

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 754
  • Hero Points: 36
Re: Where can I modify generate-debug key shortcut
« Reply #1 on: September 26, 2014, 08:36:01 PM »
It's still in tags.e, but a little disguised.  It now uses the get_message function, but you can just change it back to the old string way. 

In Beta 5, tags.e, line 3509.  Or you could search for 'generate-debug.'  Or, you could also just bind the functions to keybindings, which would upgrade automatically, so you don't have to go changing macro code with every version.  Hope this helps.

flethuseo

  • Senior Community Member
  • Posts: 177
  • Hero Points: 2
Re: Where can I modify generate-debug key shortcut
« Reply #2 on: September 26, 2014, 10:21:04 PM »
Adding a keybinding will not work for me because I have a way in which I quickly use the context menu to access it for a particular variable, function... etc. I'd rather change it in the code itself each time :\

Is there a way for me to change the value of:
VSRC_GEN_DEBUG_NO_WORD
and
VSRC_GEN_DEBUG
« Last Edit: September 26, 2014, 10:23:32 PM by flethuseo »

Sandra

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 754
  • Hero Points: 36
Re: Where can I modify generate-debug key shortcut
« Reply #3 on: September 29, 2014, 01:13:51 PM »
Unfortunately, no.