开发者

Visual Studio 2010 powertools HTML clipboard support

开发者 https://www.devze.com 2023-01-06 13:20 出处:网络
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

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:

  1. ctrl + c
  2. 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:

Visual Studio 2010 powertools HTML clipboard support

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 &nbsp;) 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>.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号