SublimeText 不断插入 \xc2 字符 [英] SublimeText keeps inserting \xc2 characters

查看:26
本文介绍了SublimeText 不断插入 \xc2 字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 SublimeText 来编写 Python.每隔一段时间它就会插入我没有输入的字符.今天的例子:

I use SublimeText for writing Python. Every so often it will insert characters that I didn't type. Today's example:

文件中的非 ASCII 字符 '\xc2'/path/to/my/project/forms.py 在第 256 行,但没有编码宣布;详情请参阅 http://www.python.org/peps/pep-0263.html(forms.py,第 256 行)

Non-ASCII character '\xc2' in file /path/to/my/project/forms.py on line 256, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (forms.py, line 256)

这种情况不会发生在我的同事身上,而且时常发生在我身上.我不知道该怎么办.我可以删除该行并重新键入它,这很好.我尝试过更新版本等.

This doesn't happen to my colleagues and happens to me from time to time. I'm not sure what to do about it. I can delete the line and re-type it and it's fine. I have tried updating versions etc etc.

我不想只设置文件编码,因为我实际上并没有输入非 ascii 字符,这会忽略实际问题.

I don't want to just set the file encoding because I'm not actually typing non-ascii characters and that would be ignoring the actual problem.

有没有其他人发现这个?解决方案?

Has anyone else found this? Solutions?

推荐答案

这也发生在我身上!如果您使用的是 MacOS,您正在输入 ⌥ + 空格,如果您使用的是 windows/Linux,我猜是 alt + 空格

That happens to me too! If you are in MacOS you´re typing ⌥ + space, if you are windows/Linux I guess it's alt + space

这篇关于SublimeText 不断插入 \xc2 字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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