键盘粘贴的时候会自动加空格 %E2%80%8B

Win7键盘复制粘贴故障
探讨了在Windows 7系统中使用键盘进行复制粘贴操作时,出现自动添加空格及特殊字符的问题,最终发现是文本预测功能导致,并给出了关闭该功能的解决方法。

现象
现象1、win7系统今天用键盘复制粘贴的时候会自动加空格。就是我先ctrl+c复制一段话,然后ctrl+v粘贴,这样粘贴的时候会自动加上一个空格。现象2、复制一个网址粘贴的时候自动加上 %E2%80%8B这这这严重影响了我的工作啊,编程可是一个标点符号都不能错的。
探索
百度谷歌看了下没有找到解决方案。我想以前一直这样复制粘贴没问题啊,怎么突然这样子呢?尝试直接用鼠标右键复制粘贴正常。那我怀疑就是键盘的问题,换了一个键盘,问题依然存在,那说明不是键盘的问题啊。键盘没问题、但是用键盘复制有问题,那就说明是键盘设置有问题。于是我调出了屏幕键盘,尝试复制粘贴,问题依然存在。我就更加确定是键盘设置问题了。
在这里插入图片描述
解决
打开屏幕键盘,找到选项,找到使用文本预测,将这个勾勾去掉,问题解决。

compileOutput: main.cpp:2:9: warning: treating Unicode character as identifier character rather than as '<' symbol [-Wunicode-homoglyph] #include<string> ^~ main.cpp:2:18: warning: treating Unicode character as identifier character rather than as '>' symbol [-Wunicode-homoglyph] #include<string> ^~ main.cpp:2:2: error: invalid preprocessing directive #include<string> ^ main.cpp:5:1: warning: treating Unicode character as identifier character rather than as '{' symbol [-Wunicode-homoglyph] { ^~ main.cpp:6:7: warning: treating Unicode character as identifier character rather than as ':' symbol [-Wunicode-homoglyph] public: ^~ main.cpp:5:1: error: variable has incomplete type 'class Welcome' { ^ main.cpp:4:7: note: forward declaration of 'Welcome' class Welcome ^ main.cpp:5:4: error: expected ';' after top level declarator { ^ ; main.cpp:7:13: warning: treating Unicode character as identifier character rather than as '(' symbol [-Wunicode-homoglyph] void welcome(); ^~ main.cpp:7:16: warning: treating Unicode character as identifier character rather than as ')' symbol [-Wunicode-homoglyph] void welcome(); ^~ main.cpp:7:19: warning: treating Unicode character as identifier character rather than as ';' symbol [-Wunicode-homoglyph] void welcome(); ^~ main.cpp:9:1: warning: treating Unicode character as identifier character rather than as '}' symbol [-Wunicode-homoglyph] }; ^~ main.cpp:11:9: warning: treating Unicode character as identifier character rather than as '(' symbol [-Wunicode-homoglyph] int main() ^~ main.cpp:11:12: warning: treating Unicode character as identifier character rather than as ')' symbol [-Wunicode-homoglyph] int main() ^~ main.cpp:12:1: warning: treating Unicode character as identifier character rather than as '{' symbol [-Wunicode-homoglyph] { ^~ main.cpp:11:15: error: expected ';' after top level declarator int main() ^ ; main.cpp:15:1: error: expected unqualified-id return 0; ^ main.cpp:16:1: warning: treating Unicode character as identifier character rather than as '}' symbol [-Wunicode-homoglyph] }; ^~ main.cpp:16:1: error: C++ requires a type specifier for all declarations main.cpp:17:12: warning: treating Unicode character as identifier character rather than as ':' symbol [-Wunicode-homoglyph] void welcom::Welcome() ^~ main.cpp:17:15: warning: treating Unicode character as identifier character rather than as ':' symbol [-Wunicode-homoglyph] void welcom::Welcome() ^~ main.cpp:17:25: warning: treating Unicode character as identifier character rather than as '(' symbol [-Wunicode-homoglyph] void welcom::Welcome() ^~ main.cpp:17:28: warning: treating Unicode character as identifier character rather than as ')' symbol [-Wunicode-homoglyph] void welcom::Welcome() ^~ main.cpp:18:1: warning: treating Unicode character as identifier character rather than as '{' symbol [-Wunicode-homoglyph] { ^~ main.cpp:17:6: error: variable has incomplete type 'void' void welcom::Welcome() ^ main.cpp:17:31: error: expected ';' after top level declarator void welcom::Welcome() ^ ; main.cpp:20:1: warning: treating Unicode character as identifier character rather than as '}' symbol [-Wunicode-homoglyph] }; ^~ main.cpp:20:1: error: C++ requires a type specifier for all declarations 18 warnings and 9 errors generated.
最新发布
09-18
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值