当前位置:网站首页>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
边栏推荐
- Dimension C China helping farmers in rural areas warms people's hearts the third stop is jiabaoguo farm
- Jerry's factors that usually affect CPU performance test results are: [article]
- The most understandable life cycle of dependency injection
- 42. Use k3det in mmrotate for rotating target detection, MNN deployment and ncnn deployment
- Unrelated interprocess communication -- creation and use of named pipes
- 计蒜客:数独(DFS)
- W801 / w800 / w806 unique ID / CPUID / flashid
- 计蒜客家谱(dfs求直系后代数)
- What code needs unit testing?
- 客户端项目管理经常面临的挑战
猜你喜欢

Unrelated interprocess communication -- creation and use of named pipes

2022 low voltage electrician examination questions and answers

DFS奇偶性剪枝

Counting garlic customers: Sudoku (DFS)

Full Permutation (DFS and next_permutation solution)

JSP basic knowledge summary

Chapter 6 uses Matplotlib to draw thermodynamic diagram

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

Completely uninstall antidote 10? What if the antidote uninstall is not clean?

Qingyan environment and Shenzhen Stock Exchange listing: annual revenue of 180 million and market value of 4.1 billion
随机推荐
Unrelated interprocess communication -- creation and use of named pipes
Vscode + PHP debug + namespace guidelines
Chris LATTNER, father of llvm: the golden age of compilers
Blocking granularity of gbase 8s concurrency control
VSCODE + PHP Debug + 名字空间指引
How to install mysql-5.7.9 in RPM mode under Linux system
Introduction to gbase 8s shared memory buffer pool
JSP basic knowledge summary
Unity combines itextsharp to generate PDF preparation DLL
Introduction à la structure de stockage de gbase 8S et à la gestion de l'espace
Introduction to gbase 8s storage structure and space management
计蒜客(踏青)(染色块问题的DFS和BFS解法)
LSF的常用使用命令总结
Summary of commonly used commands of LSF
学习方法与职业发展指南(2022年版)
安装mysql出问题求解决
UVC camera encapsulation class
Rotation slice
领导/老师让填写电子excel表格文档可手机上如何编辑word/excel文件填写excel/word电子文档?
New functions of ai2022, introduction to new functions of illustrator 2022