当前位置:网站首页>Keil5 MDK's formatting code tool and adding shortcuts
Keil5 MDK's formatting code tool and adding shortcuts
2022-07-06 14:42:00 【LLearners】
Preface
keil There are many functions and Tools, Today I will briefly talk about one Tools. This tool is mainly applicable to one-time formatting of code . Formatting is about the neatness of the code . The code is properly neat , It helps us read the code .
Every time you write code , I don't pay attention to the format specification of the code all the time , There are always some files whose code format is not standardized , Every adjustment is particularly troublesome and always makes mistakes , Especially the novice Xiaobai . Now let's use a tool Astyle, It can easily format the program code into the style you want without manual modification .
For more convenient operation , We have added formatting tools Astyle Shortcut to , Don't always use the mouse to click , Faster and more convenient formatting code .

Astyle Introduce
Astyle namely Artistic Style, Is one that can be used for C, C++, C++/CLI, Objective‑C, C# and Java Programming language formatting open source tools .
Official website :Artistic Style - Index
Baidu network disk link :https://pan.baidu.com/s/11yloLOZWK0-7bnLSM4umRA#list/path
Extraction code :a6de
The following is about the configuration and use of tools : Format the current file 、 Format all .c file , Format all .h file 、 Shortcut settings
keil(MDK) Loading tools in Astyle( Format current file tool settings )
- stay Astyle Official website Download the latest compiled Astyle. Or Baidu disk download .
- When the download is complete , Unzip to a directory , Enter the unzipped file and find bin Under the Astyle.exe.
- open keil(MDK) , choice Tools->Customize Tools Menu

- The first 1 Step click the new button , Step enter the name : Format the current file

- The first 1 Click next 1 Location , The first 2 Click next 2 Select the location under the storage path Astyle.exe file


- Enter the command in the following position ( Pay attention to case ):!E Click... After input OK, Will be in tools The tool added as shown in the figure below appears .


- The above configuration is complete , We are now using , Find a file , choice Tools-> Format the current file . Figure 1 is unformatted , Figure 2 is formatted .

keil(MDK) Loading tools in Astyle( format .c and .h file Tool settings )
- The configuration is the same as formatting the current file . Also used is Astyle.exe file
- Name and another configuration are shown in the figure ..c File configuration :-n "$E*.c" .h File configuration :"$E*.h"


keil(MDK) Shortcut keys perform quick formatting of code ( Quick format tool settings )
Edit->Configuration Switch to Shortcut Keys Options , choice Format the current file , Click on Create Shortcut Create a new shortcut , Press the shortcut key you want to set in the pop-up window , Then save to exit , Using formatting is the shortcut key set by yourself . The following is the graphic operation mode .
1. Open Settings .Edit->Configuration->Shortcut Keys

2. Set as shown in the figure . No 5 Step use to directly enter your own commands . Such as :Ctrl + T
————————————————
Copyright notice : This paper is about CSDN Blogger 「LLearner」 The original article of , follow CC 4.0 BY-SA Copyright agreement , For reprint, please attach the original source link and this statement .
Blog :LLearners The blog of _CSDN Blog - Domain Blogger
Link to the original text :https://blog.csdn.net/weixin_70641798?type=blog
边栏推荐
- An unhandled exception occurred when C connected to SQL Server: system Argumentexception: "keyword not supported:" integrated
- Intranet information collection of Intranet penetration (2)
- 【指针】统计一字符串在另一个字符串中出现的次数
- Proceedingjoinpoint API use
- 关于交换a和b的值的四种方法
- 【指针】数组逆序重新存放后并输出
- 函数:计算字符串中大写字母的个数
- High concurrency programming series: 6 steps of JVM performance tuning and detailed explanation of key tuning parameters
- Query method of database multi table link
- Intel oneapi - opening a new era of heterogeneity
猜你喜欢

Fundamentals of digital circuit (V) arithmetic operation circuit

Résumé des points de connaissance et des réponses aux exercices après la classe du chapitre 7 de Jia junping dans la huitième édition des statistiques
![Transplant hummingbird e203 core to Da Vinci pro35t [Jichuang xinlai risc-v Cup] (I)](/img/85/d6b196f22b60ad5003f73eb8d8a908.png)
Transplant hummingbird e203 core to Da Vinci pro35t [Jichuang xinlai risc-v Cup] (I)

后台登录系统,JDBC连接数据库,做小案例练习

Record an API interface SQL injection practice

Statistics 8th Edition Jia Junping Chapter 5 probability and probability distribution

Apache APIs IX has the risk of rewriting the x-real-ip header (cve-2022-24112)

Statistics 8th Edition Jia Junping Chapter 10 summary of knowledge points of analysis of variance and answers to exercises after class

Fundamentals of digital circuit (IV) data distributor, data selector and numerical comparator

Intranet information collection of Intranet penetration (4)
随机推荐
Statistics 8th Edition Jia Junping Chapter XIII Summary of knowledge points of time series analysis and prediction and answers to exercises after class
{1,2,3,2,5}查重问题
刷视频的功夫,不如看看这些面试题你掌握了没有,慢慢积累月入过万不是梦。
c语言学习总结(上)(更新中)
指针:最大值、最小值和平均值
High concurrency programming series: 6 steps of JVM performance tuning and detailed explanation of key tuning parameters
1. Payment system
Bing Dwen Dwen official NFT blind box will be sold for about 626 yuan each; JD home programmer was sentenced for deleting the library and running away; Laravel 9 officially released | Sifu weekly
函数:用牛顿迭代法求方程的根
《統計學》第八版賈俊平第七章知識點總結及課後習題答案
浙大版《C语言程序设计实验与习题指导(第3版)》题目集
Network technology related topics
【指针】求字符串的长度
Fundamentals of digital circuit (V) arithmetic operation circuit
函数:计算字符串中大写字母的个数
Captcha killer verification code identification plug-in
“Hello IC World”
“人生若只如初见”——RISC-V
Function: calculates the number of uppercase letters in a string
循环队列(C语言)