当前位置:网站首页>keil mdk中文乱码,两种解决方法,字体不再难看
keil mdk中文乱码,两种解决方法,字体不再难看
2022-04-23 01:43:00 【无痕幽雨】
方法一:修改成Encode in UTF-8 without signature
我嘞个去!被字符编码整晕了,unicode,ANSI,UTF-8,GB2312。。。
新版mdk(4.6,4.7)支持直接显示中文了,但光标老是半个半个的跳,超级不爽!
按以前的解决方法,edit-->configration-->editer里面的Encoding修改为Chinese GB2132。
但是!!!本来很好看的默认字体,修改GB2132以后,咋看咋觉得丑的不行~~~那个叫郁闷啊!
后来,发现不要修改成GB2132了,修改成Encode in UTF-8 without signature。。。嘿嘿!完美解决字体丑陋跟中文半个光标的问题!
然后!!!又发现问题了!TMD以前写的代码在mdk打开后竟然乱码?!我嘞个去呀!
想呀想,一点点的手动修改,多tmd恶心啊!
so!用notepad++打开乱码的.c .h文件,格式-->转换为UTF-8编码格式!ctrl+s保存!
再在mdk中打开,漂亮的字体!完美的中文!
binggo!搞定!!!
PS:新发现!使用notepad++修改为UTF-8编码格式以后,mdk中编码格式不用修改,都不会出现光标跳半个的问题了!
在Keil中添加中文注释的时候,如果写错了想删除,一般是删一次会出现乱码的问题,特别是想在一段中文中插入一句话时,光标位置没选好的话后面的注释都会受到影响而现实乱码,一般解决的方法是在keil的configuration中选择GB2312等一些中文编码方式,如果直接选择UTF-8,可能会出现现有的注释乱码问题,选择GB2312的话,整个编译器的字体都会改变,个人还是比较喜欢自带的Consolas字体,英文显示效果还可以,当然有些会选择用黑体,个人觉得还是不够好看,特别是用黑体英文的显示不好。今天主要解决的是英文既用Consolas字体显示,中文用微软雅黑,更主要的是删除中文注释时不会乱码的问题:
上面说的比较明显了要达到这个效果,需要另外下载一款字体,Consolas雅黑混合版编程字体
下载链接: http://pan.baidu.com/s/1pLzPRez 密码: 2vp9
安装时关闭keil,不然找不到安装的字体,安装后到keil的configuration中选择安装的字体,然后编码方式选择GB
2312,即可解决这个问题。这些设置都是个人爱好问题,不喜勿喷。
找不到字体的话,keil安装目录下UV4/global.prop用记事本打开修改font.momospace.cpp后的参数为YaHei Consolas Hybrid。
————————————————
版权声明:本文为CSDN博主「遇见好时光」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/baidu_34570497/article/details/51114189
版权声明
本文为[无痕幽雨]所创,转载请带上原文链接,感谢
https://blog.csdn.net/wuhenyouyuyouyu/article/details/121204223
边栏推荐
- Rôles attributs personnels Abréviations
- Problem solving: dpkg DEB: error: package name has characters that are't lowercase alphanums or '- +‘
- 最长公共子序列(记录路径版)
- Garlic Junkai company (DFS full arrangement)
- Unity combines itextsharp to generate PDF preparation DLL
- 《维C中国》乡村助农暖人心第三站嘉宝果农场
- 42、使用mmrotate中k3det进行旋转目标检测,并进行mnn部署和ncnn部署
- Leetcode-阶乘函数后 K 个零
- LSF的使用方法总结
- FL studio20.8最新中文版本安装下载图文教程
猜你喜欢
2022 melting welding and thermal cutting operation certificate examination question simulation examination platform operation
Completely uninstall antidote 10? What if the antidote uninstall is not clean?
Introduction to PCIe xdma IP core (with list) - mingdeyang science and Education (mdy edu. Com)
科技云报道:云计算进入“下半场”,国产云的出路在哪儿?
Level 4 city area table xlsx, SQL file, domestic, provincial, county, street, township level 4 address in China (name, linkage ID, level, end level or not (1-yes))
电子采购如何成为供应链中的增值功能?
Abused "architect"!
leetcode771. Gemstones and stones
JSP basic knowledge summary
王子救公主(DFS)
随机推荐
NR polar code 七- SCL(succesive cancellation list decoding)
W801/W800-wifi-socket开发(二)-UDP蓝牙控制wifi连接
Tight coupling of visual wheel odometer
.NET单元测试第一篇:常见.NET单元测试框架有哪些?
mb_substr()、mb_strpos()函数(故事篇)
Completely uninstall antidote 10? What if the antidote uninstall is not clean?
紫光国微财报一枝独秀 2021年净利润三位数增长靠什么
Abused "architect"!
W801 / w800 WiFi socket development (II) - UDP Bluetooth control WiFi connection
Introduction and management of gbase 8s database log
Is the stable currency a super opportunity to accelerate the death of the public chain or replace BTC?
. net (c) MySQL conn.open() reports an error: solution to SSL connection error
leetcode771. Gemstones and stones
引爆炸弹(DFS)
[Blue Bridge Cup] [10th real topic in 2019] priority of takeout shop
42、使用mmrotate中k3det进行旋转目标检测,并进行mnn部署和ncnn部署
d盘分给C盘后,数据库恢复挂起怎么办,求各位解答
Gbase 8t index
安装mysql出问题求解决
K zeros after leetcode factorial function