Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个片段添加得很好:
http://pastebin.com/m5f7f2dce
这是我试图添加到我的 IDE 中的一个:
http://pastebin.com/m61321572
但我收到“无效片段”错误。除了声明区,我看不出两者有什么不同。
有什么帮助吗?
如果我使用 Latin1 编码保存您的代码段,我会得到同样的错误。
如果您使用 UTF-8 编码保存该片段,则会成功导入该片段。