当前位置:网站首页>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
边栏推荐
- ESP32使用freeRTOS的消息队列
- NPM -- configure Taobao image
- Jerry's AI server [chapter]
- The leader / teacher asks to fill in the EXCEL form document. How to edit the word / Excel file on the mobile phone and fill in the Excel / word electronic document?
- Problem solving: dpkg DEB: error: package name has characters that are't lowercase alphanums or '- +‘
- 学习方法与职业发展指南(2022年版)
- Jisuan Hakka spectrum (DFS for direct post algebra)
- LSF的使用方法总结
- Summary of commonly used commands of LSF
- Full Permutation (DFS and next_permutation solution)
猜你喜欢

Do447 manage user and team access

Oracle database query lock table SQL script and delete lock information script (necessary for database development ETL and DBA)

Introduction to PCIe xdma IP core (with list) - mingdeyang science and Education (mdy edu. Com)

第六章 使用 matplotlib 绘制热力图

Dimension C China helping farmers in rural areas warms people's hearts the third stop is jiabaoguo farm

Full Permutation (DFS and next_permutation solution)

W801/W800-wifi-socket开发(一)-UDP

Longest common subsequence (record path version)

Unrelated interprocess communication -- creation and use of named pipes

Cc2541 emulator CC debugger tutorial
随机推荐
New functions of ai2022, introduction to new functions of illustrator 2022
NPM -- configure Taobao image
Introduction to PCIe xdma IP core (with list) - mingdeyang science and Education (mdy edu. Com)
Slow response of analysis API
42、使用mmrotate中k3det进行旋转目标检测,并进行mnn部署和ncnn部署
C语言实现Base64编码/解码
批处理多个文件合成一个HEX
Technology cloud report: cloud computing has entered the "second half". Where is the way out for domestic cloud?
.NET单元测试第一篇:常见.NET单元测试框架有哪些?
电子采购如何成为供应链中的增值功能?
The sixth season of 2022, the perfect children's model IPA national race leads the yuanuniverse track
leetcode771. Gemstones and stones
2022 Saison 6 perfect Kid Model IPA national race Leading the Meta - Universe Track
Learning methods and career development guide (2022 Edition)
Garlic Junkai company (DFS full arrangement)
[Blue Bridge Cup] [10th real topic in 2019] priority of takeout shop
2022 melting welding and thermal cutting operation certificate examination question simulation examination platform operation
Full Permutation (DFS and next_permutation solution)
Chris LATTNER, father of llvm: the golden age of compilers
Redis implements distributed locks