代码段无法添加到Visual C#Express '08中的代码片段库中(Code Snippet can't be added to snippet library in Vis

编程入门 行业动态 更新时间:2024-10-24 14:26:03
代码段无法添加到Visual C#Express '08中的代码片段库中(Code Snippet can't be added to snippet library in Visual C# Express '08)

这段代码添加得很好:

http://pastebin.com/m5f7f2dce

这是我想要添加到我的IDE中的一个:

http://pastebin.com/m61321572

但我收到“无效片段”错误。 除了声明区域外,我没有看到两者有什么不同。

任何帮助?

This snippet is added fine:

http://pastebin.com/m5f7f2dce

And this is the one I'm trying to add into my IDE:

http://pastebin.com/m61321572

But I recieve an "invalid snippet" error. I don't see anything different about the two except for the declaration area.

Any help?

最满意答案

如果我使用Latin1编码保存片段,我会得到相同的错误。

如果使用UTF-8编码保存片段,则片段将成功导入。

I get the same error if I save your snippet with Latin1 encoding.

The snippet successfully gets imported if you save it with UTF-8 encoding.

更多推荐

本文发布于:2023-07-22 12:19:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1219959.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:代码   片段   库中   Express   library

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!