title: Keyboard shortcut to Un/Comment out code in Mathematica 7?
body: <p>A keyboard shortcut to comment/uncomment out a piece of code is common in other programming IDE's for languages like Java, .Net. I find it a very useful technique when experimenting through trial and error to temporarily comment out and uncomment lines, words and parts of the code to find out what is and isn't working.</p>
  
  <p>I cannot find any such keyboard shortcut on the Mathematica front end in version 7. I know that it is possible to comment out code by selecting the code, right mouse click and select Un/Comment from the menu that appears but this is too slow while coding. </p>
  
  <p>I tried to access this using the <a href="http://en.wikipedia.org/wiki/Menu_key" rel="nofollow noreferrer">menu key</a> <kbd>Menu</kbd> on the keyboard but Mathematica frontend doesn't respond to or recognise this key unlike other applications, this could have allowed a key combination for commenting. Can someone else verify that this isn't unique to my machine and that the key isn't recognised by mathematica. I looked at this <a href="https://stackoverflow.com/questions/4209405/customizing-mathematica-shortcuts">question</a> and looked in the KeyEventTranslations.tr file but I don't think there is any way to create a shortcut to do this(?).  Should I just live with it?</p>
  
  <p>Any other suggestions?</p>
  
  <p>(I have seen there is an Emacs version of mathematica, I have never tried Emacs or this Mma version and imagine that it would have this ability but would prefer not to go to the trouble and uncertainty of installing it. Also I would guess that the Wolfram Workbench could do this, but that may not be worth the investment just for this.)</p>