从VS 2017粘贴到Word 2016不会格式化或允许使用选择性粘贴进行格式化 [英] Paste from VS 2017 to Word 2016 does not format or allow formatting with Paste Special

查看:445
本文介绍了从VS 2017粘贴到Word 2016不会格式化或允许使用选择性粘贴进行格式化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 10平台上使用Visual Studio 2017和Office 2016(所有最近的升级)。在Windows 7平台上使用VS 2010和Office 2013时,我经常将VS文件或VS文件的一部分复制到Word文档以备份它们。格式化
和颜色编码总是粘贴得很好,我没有使用Paste Special。

I am using Visual Studio 2017 and Office 2016 on a Windows 10 platform (all recent upgrades). When using VS 2010 and Office 2013 on a Windows 7 platform, I frequently copied VS files or portions of VS files to Word documents to back them up. The formatting and color-coding always pasted just fine, and I did not have to use Paste Special.

现在, VS 2017和Office 2016,Word中的Normal样式接管并删除任何VS格式。在"选择性粘贴"对话框中,仅"未格式化的Unicode文本"。可用。

Now, with VS 2017 and Office 2016, the Normal style from Word takes over and removes any VS formatting. In the Paste Special dialog box, only "Unformatted Unicode Text" is available.

如何让Word运行并按我的意愿行事:只需将VS文件粘贴为其原始格式和样式?谢谢。

How do I get Word to behave and do what I want: just paste the VS file in its original format and styling? Thanks.

P.S。这似乎是一个Visual Studio 2017问题,因为在OpenOffice Writer中也发生了同样的事情。进一步调查表明,如果我发布一段代码,格式将保留原样,但是如果我发布了完整内容,
说从部分类到结束类,或大部分代码,它不是。

P.S. This appears to be a Visual Studio 2017 issue, as the same thing is happening in OpenOffice Writer. Further investigation shows that if I post a section of code, the formatting is retained as it should be, but if I post the full contents, say from Partial Class to End Class, or a large section of code, it is not.

推荐答案

我担心你在一个专门讨论Microsoft Access的论坛上发布了你的问题,这个问题似乎与你的问题无关。 我建议你重新发布一个致力于Visual Studio和/或Word的论坛 - 虽然你是对的,但它听起来像是Visual Studio 2017的特定
问题。

I'm afraid you've posted your question in a forum devoted to Microsoft Access, which doesn't seem to be related to your issue.  I suggest you repost in a forum devoted to Visual Studio and/or Word -- although you're right, it does sound like a specific issue with Visual Studio 2017.


这篇关于从VS 2017粘贴到Word 2016不会格式化或允许使用选择性粘贴进行格式化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆