I installed http://weblogs.asp.net/scottgu/archive/201开发者_开发知识库0/06/09/visual-studio-2010-productivity-power-tool-extensions.aspx but I can not find where I can make use of the HTML clipboard support. Anyone knows where to find it? I already searched in the kebyoard settings after Copy but that didn't provide me something useful.
Anyone?
Did you try out the steps described in this article?
You need to do the following:
- ctrl + c
- ctrl + shift + v (paste special), not normal paste!
when you copy the code and paste it to a HTML buffer (i.e visual studio designer) it will be automatically formatted.
to try it
copy a code and paste it in visual studio HTML designer you will find it automatically formatted.
Just for possible future readers of this (as I came here from Google myself).
For me, ctrl
+shift
+v
is not doing anything in Windows Live Writer 2011.
However, when I right click in the designer I find the "Paste Special" option, and it gets me the following dialog:
And then the rest of the article works, choosing "Keep Formatting" gets me the code as expected.
Another tip is don't mess with the Power Tools Copy HTML Tools->Options dialog settings that mention span
in them. The 'use classes' option doesn't work and you have to use inline styles. The setting that did work for me was replacing space characters (Default
) with real space no more. This works because the default code container is
<pre>
tag which "does" preserve spaces. Of course this won't work if you change the container to something else that doesn't have <pre>
.
精彩评论