Link to home
Start Free TrialLog in
Avatar of vamail2
vamail2

asked on

Sharepoint Designer 2010 - Any shortcuts to comment or uncomment out html code?

Whenever I have html code that spans pages that I want to comment out its a PITA with SPD.  

I guess I am used to VS 2010 - but in Visual Stusio, any code that is highlighted/selected can be commented out via CtrlK+C and uncommented with Ctrl+KU.

How do I quiclly comment out code I have selected in SPD?  I tried the quick edit tag - wrap tag, but it doesn't accept "<!-- -->".  It only allows Div etc...


Otherwise, I have to select the whole tag and contents which jumps to the end tag.  Put --> at the end and then  Hit Ctrl+; twice to jump to the beginning tag and put in <!--.


Is there an easier way, some keyboard shortcut.  Are there any power tools for SPD or addins or macros I could record?

Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of shahzadbux
shahzadbux
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vamail2
vamail2

ASKER

Thanks.  That works but it deletes any highlighted code.   So instead I write a code snippet which retains any highlighted code AND surrounds it with html comment syntax.  For anyone who needs it, the code snippet is simply

<!--
|
 -->

You must use the vertical piping symbol to retain highlighted code.