Visual Studio 2010 powertools HTML剪贴板支持

时间:2022-09-01 16:32:25

I installed http://weblogs.asp.net/scottgu/archive/2010/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.

我安装了http://weblogs.asp.net/scottgu/archive/2010/06/09/visual-studio-2010-productivity-power-tool-extensions.aspx,但我无法找到可以使用HTML的地方剪贴板支持。谁知道在哪里找到它?我已经在复制后搜索了kebyoard设置,但这并没有为我提供有用的东西。

Anyone?

3 个解决方案

#1


1  

Did you try out the steps described in this article?

您是否尝试过本文中描述的步骤?

You need to do the following:

您需要执行以下操作:

  1. ctrl + c
  2. ctrl + c

  3. ctrl + shift + v (paste special), not normal paste!
  4. ctrl + shift + v(粘贴特殊),不正常粘贴!

#2


1  

when you copy the code and paste it to a HTML buffer (i.e visual studio designer) it will be automatically formatted.

当您复制代码并将其粘贴到HTML缓冲区(即visual studio designer)时,它将自动格式化。

to try it

尝试一下

copy a code and paste it in visual studio HTML designer you will find it automatically formatted.

复制代码并将其粘贴到visual studio HTML设计器中,您会发现它自动格式化。

#3


0  

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.

对我来说,ctrl + shift + v在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剪贴板支持

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>.

另一个提示是不要弄乱提及其中的跨度的Power Tools复制HTML工具 - >选项对话框设置。 'use classes'选项不起作用,您必须使用内联样式。对我有用的设置是用空格替换空格字符(默认 )。这是有效的,因为默认代码容器是

标签,“确实”保留空格。当然,如果将容器更改为其他没有
的容器,则无效。

#1


1  

Did you try out the steps described in this article?

您是否尝试过本文中描述的步骤?

You need to do the following:

您需要执行以下操作:

  1. ctrl + c
  2. ctrl + c

  3. ctrl + shift + v (paste special), not normal paste!
  4. ctrl + shift + v(粘贴特殊),不正常粘贴!

#2


1  

when you copy the code and paste it to a HTML buffer (i.e visual studio designer) it will be automatically formatted.

当您复制代码并将其粘贴到HTML缓冲区(即visual studio designer)时,它将自动格式化。

to try it

尝试一下

copy a code and paste it in visual studio HTML designer you will find it automatically formatted.

复制代码并将其粘贴到visual studio HTML设计器中,您会发现它自动格式化。

#3


0  

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.

对我来说,ctrl + shift + v在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剪贴板支持

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>.

另一个提示是不要弄乱提及其中的跨度的Power Tools复制HTML工具 - >选项对话框设置。 'use classes'选项不起作用,您必须使用内联样式。对我有用的设置是用空格替换空格字符(默认 )。这是有效的,因为默认代码容器是

标签,“确实”保留空格。当然,如果将容器更改为其他没有
的容器,则无效。