Hotkey for commenting a block of text?

Jun 28, 2012 at 6:25 AM

Is there a hotkey (or some sort of functionality, not hotkey necessarily) with which I can hash comment a block of code? A lot of other Python IDEs have this so I'm assuming (hoping) Python Tools for VS does as well?

And yes, I know I can triple-quote a block but I would really rather keep that reserved for other things.

Coordinator
Jun 29, 2012 at 5:40 PM

You should try these commands:

Edit->Advanced->Comment Selection (Ctrl-K,Ctrl-C)
Edit->Advanced->Uncomment Selection (Ctrl-K,Ctrl-U)

 

 

Jun 29, 2012 at 8:06 PM
huguesv wrote:

You should try these commands:

Edit->Advanced->Comment Selection (Ctrl-K,Ctrl-C)
Edit->Advanced->Uncomment Selection (Ctrl-K,Ctrl-U)

 

 

 

Works like a charm, thanks a lot. :D