当前位置:网站首页>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
边栏推荐
- [course summary] Hello harmonyos series of courses, take you to zero foundation introduction
- Chris LATTNER, father of llvm: the golden age of compilers
- Introduction to PCIe xdma IP core (with list) - mingdeyang science and Education (mdy edu. Com)
- Soatest preliminary understanding
- Gbase 8s 共享内存段删除
- VSCODE + PHP Debug + 名字空间指引
- 修改数组(并查集)
- 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))
- 最新流程引擎 flowable 6.7.2 更新说明
- 《维C中国》乡村助农暖人心第三站嘉宝果农场
猜你喜欢

Google developer tool preserve log

Prince saves Princess (DFS)

什么时候应该编写单元测试?什么是TDD?

第六章 使用 matplotlib 绘制热力图

Ziguang micro financial report is outstanding. What does the triple digit growth of net profit in 2021 depend on

2022 melting welding and thermal cutting operation certificate examination question simulation examination platform operation

Realize the function of progress bar through layerdrawable

Soatest preliminary understanding

2022 Saison 6 perfect Kid Model IPA national race Leading the Meta - Universe Track

W801 / w800 WiFi socket development (II) - UDP Bluetooth control WiFi connection
随机推荐
Full Permutation (DFS and next_permutation solution)
腾讯云接口进行人脸检测 和签名出错问题
Update description of the latest process engine flowable 6.7.2
Introduction to gbase 8s shared memory buffer pool
Gbase 8s Group by 功能介绍
42. Use k3det in mmrotate for rotating target detection, MNN deployment and ncnn deployment
GBase 8t索引
Unity combines itextsharp to generate PDF preparation DLL
Gbase 8s fragment table management operation
稳定币是让公链加速死亡或者取代BTC的超级机会?
彻底卸载Antidote 10 ?Antidote卸载不干净怎么办?
哪些代码需要做单元测试?
W801 / w800 WiFi socket development (I) - UDP
d盘分给C盘后,数据库恢复挂起怎么办,求各位解答
计蒜客:等边三角形(DFS)
. net unit test Part 1: common Net unit test framework?
Rotation slice
Prince saves Princess (DFS)
轮转法分片
FL studio20.8最新中文版本安装下载图文教程