Re: dissabling code segments
- To: mathgroup at smc.vnet.net
- Subject: [mg115199] Re: dissabling code segments
- From: David Bailey <dave at removedbailey.co.uk>
- Date: Tue, 4 Jan 2011 04:24:37 -0500 (EST)
- References: <ifs31m$opn$1@smc.vnet.net>
On 03/01/2011 08:57, Eric Michielssen wrote: > Hi, > > Often, I would like to quickly disable (comment out) a few lines of my code. > Of course, I can do this by enclosing these lines as (* lines *). > > I was wondering whether I could automate this operation and its reverse > using the frontend, so that I just have to select the lines in question and > press a hotkey combination. > > Thanks! > > Eric Michielssen > > > There is a menu item Edit/ Un/Comment Selection that does exactly this. I use it a lot. David Bailey http://www.dbaileyconsultancy.co.uk