当前位置:网站首页>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
边栏推荐
- 2n皇后问题
- 无关联进程间通信 —— 命名管道的创建和使用
- FL studio20.8最新中文版本安装下载图文教程
- Garlic customer: equilateral triangle (DFS)
- Google developer tool preserve log
- Deployment of mask detection flash for yolov5
- iTextSharp 显示中文字体
- Glide set fillet image (support custom fillet position)
- Futr3d: a unified 3D detection framework for sensor fusion
- Vscode + PHP debug + namespace guidelines
猜你喜欢

Counting garlic customers: Sudoku (DFS)

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

LSF的使用方法总结
![[course summary] Hello harmonyos series of courses, take you to zero foundation introduction](/img/65/96ff0b526cd8f507df82c80a47a35e.jpg)
[course summary] Hello harmonyos series of courses, take you to zero foundation introduction

Self taught programming, don't read theory books foolishly, programmer: it's all left over by others

Technology cloud report: cloud computing has entered the "second half". Where is the way out for domestic cloud?

JSP basic knowledge summary

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

Custom numeric input control

DFS奇偶性剪枝
随机推荐
Unrelated interprocess communication -- creation and use of named pipes
GBase8s SQL 引擎框架简介
Gbase 8s数据库日志简介及管理
Gbase 8s query processing and optimization
ai2022新功能,illustrator 2022 新功能介绍
《维C中国》乡村助农暖人心第三站嘉宝果农场
Vscode + PHP debug + namespace guidelines
腾讯云接口进行人脸检测 和签名出错问题
. net unit test Part 1: common Net unit test framework?
第六章 使用 matplotlib 绘制热力图
科技云报道:云计算进入“下半场”,国产云的出路在哪儿?
iTextSharp 基础结构
GBase 8s查询处理和优化
W801/W800/W806唯一ID/CPUID/FLASHID
DO447管理用户和团队的访问
Jerry's CPU performance test [chapter]
[course summary] Hello harmonyos series of courses, take you to zero foundation introduction
How to install mysql-5.7.9 in RPM mode under Linux system
Introduction to gbase 8s shared memory buffer pool
Redis实现分布式锁