当前位置:网站首页>Keil MDK Chinese garbled code, two solutions, the font is no longer ugly
Keil MDK Chinese garbled code, two solutions, the font is no longer ugly
2022-04-23 01:47:00 【Traceless rain】
Method 1 : Modified into Encode in UTF-8 without signature
W I a go ! Stunned by character coding ,unicode,ANSI,UTF-8,GB2312...
new edition mdk(4.6,4.7) Support direct display of Chinese , But the cursor always jumps half by half , Super upset !
Follow the previous solution ,edit-->configration-->editer Inside Encoding It is amended as follows Chinese GB2132.
however !!! A nice default font , modify GB2132 in the future , At first glance, I feel ugly ~~~ That's depressing !
later , Don't change it to GB2132 了 , Modified into Encode in UTF-8 without signature... Hey ! Perfectly solve the problem of ugly font and half Chinese cursor !
then !!! I found a problem again !TMD Code written in the past mdk After opening it, it was garbled ?! Let me go !
Think and think , A little manual modification , many tmd Disgusting !
so! use notepad++ Open the random code .c .h file , Format --> Convert to UTF-8 Coding format !ctrl+s preservation !
And then mdk Open in , Beautiful font ! Perfect Chinese !
binggo! Get it done !!!
PS: The newly discovered ! Use notepad++ It is amended as follows UTF-8 After the encoding format ,mdk The coding format in does not need to be modified , There won't be the problem of cursor jumping for half !
Method 2 : Download a font ,Consolas YaHei mixed edition programming font
stay Keil When adding Chinese Notes in , If you make a mistake, you want to delete , Generally, there will be a problem of garbled code when deleted once , Especially when you want to insert a sentence in a Chinese paragraph , If the cursor position is not selected, the following comments will be affected and the reality is messy , The general solution is to keil Of configuration Choose from GB2312 Wait for some Chinese coding methods , If you choose directly UTF-8, There may be an existing comment garbled problem , choice GB2312 Words , The whole compiler will change the font , Personally, I prefer to bring my own Consolas typeface , The English display effect is OK , Of course, some will choose to use bold , Personally, I don't think it's good enough , Especially the display in bold English is not good . Today's main solution is to use both English Consolas Font display , In Chinese, Microsoft YaHei , More importantly, there will be no garbled code when deleting Chinese Notes :
The above is obvious. To achieve this effect , Need to download another font ,Consolas YaHei mixed edition programming font
Download link : http://pan.baidu.com/s/1pLzPRez password : 2vp9
Close during installation keil, Otherwise, the installed font cannot be found , After installation to keil Of configuration Select the font installed in , Then select the encoding method GB
2312, To solve this problem . These settings are a matter of personal preference , No joy, no spray. .
If you can't find the font ,keil Installation directory UV4/global.prop Use Notepad to open and modify font.momospace.cpp The parameter after is YaHei Consolas Hybrid.
————————————————
Copyright notice : This paper is about CSDN Blogger 「 Meet good times 」 The original article of , follow CC 4.0 BY-SA Copyright agreement , For reprint, please attach the original source link and this statement .
Link to the original text :https://blog.csdn.net/baidu_34570497/article/details/51114189
版权声明
本文为[Traceless rain]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230143119483.html
边栏推荐
- 角色個人屬性英文縮寫
- NPM -- configure Taobao image
- mb_ substr()、mb_ Strpos() function (story)
- Slow response of analysis API
- 紫光国微财报一枝独秀 2021年净利润三位数增长靠什么
- W801/W800-wifi-socket开发(二)-UDP蓝牙控制wifi连接
- Unity combines itextsharp to generate PDF preparation DLL
- Garlic Junkai company (DFS full arrangement)
- Abused "architect"!
- Dimension C China helping farmers in rural areas warms people's hearts the third stop is jiabaoguo farm
猜你喜欢
Leetcode 112 Total path (2022.04.22)
W801/W800/W806唯一ID/CPUID/FLASHID
电子采购如何成为供应链中的增值功能?
The most understandable life cycle of dependency injection
Redis实现分布式锁
Slow response of analysis API
MySQL basic record
教程】如何用GCC“零汇编”白嫖MDK
Introduction to PCIe xdma IP core (with list) - mingdeyang science and Education (mdy edu. Com)
Problem solving: dpkg DEB: error: package name has characters that are't lowercase alphanums or '- +‘
随机推荐
数字藏品平台入驻 数字藏品平台开发 数字藏品SaaS平台
W801/W800/W806唯一ID/CPUID/FLASHID
2022 Saison 6 perfect Kid Model IPA national race Leading the Meta - Universe Track
2n queen problem
批处理多个文件合成一个HEX
Google developer tool preserve log
Glide set fillet image (support custom fillet position)
About how to import C4d animation into lumion
What code needs unit testing?
Redis实现分布式锁
ESP32使用freeRTOS的消息队列
Cc2541 emulator CC debugger tutorial
W801 / w800 WiFi socket development (I) - UDP
单片机和4G模块通信总结(EC20)
mb_substr()、mb_strpos()函数(故事篇)
Modify array (and search set)
DFS parity pruning
.NET单元测试第一篇:常见.NET单元测试框架有哪些?
Counting garlic guest: the solution of the equation
CC2541的仿真器CC Debugger使用教程