如何正确复制代码示例 [英] How to properly copy code samples

查看:125
本文介绍了如何正确复制代码示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





当我从一些文章中复制代码然后粘贴到我的VS时,

代码是HTML格式的。

如何避免这种情况?



我无法生成样本,因为您的网站似乎剥离了html标记。 />


我尝试了什么:



如果我直接从页面复制,问题消失了......

但复制按钮的用途是什么?

解决方案

这是一个网站错误 - 我已经报道了适合你的地方:错误和建议 [ ^ ]

Hi,

when I copy code from some articles and then paste to my VS,
the code is in HTML format.
How to avoid this?

I can't produce a sample because your site seems to strip-out the html markups.

What I have tried:

If I copy directly from page, the problem disappears ...
but what is the utility of copy "button" ?

解决方案

It's a site bug - I've reported it for you in the appropriate place: Bugs and Suggestions[^]


这篇关于如何正确复制代码示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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