当前位置:网站首页>code::blocks代码格式化快捷键
code::blocks代码格式化快捷键
2022-06-29 06:40:00 【SevenBerry】
1. 原生代码格式化:代码编辑区右键,选择 Format use Astyle
2. 设置代码格式化快捷键:依次选择
Settings -> Editor... -> Keyboard shortcuts -> Plugins -> Source code formatter (AStyle)
在 New Shortcut 中按下预设置的快捷键,然后点击 Add

3. codeblocks代码格式化的默认风格为大括号另起一行,就像下面这样

若觉得不习惯可修改为括号在上一行
首先,Settings -> Editor... -> Source formatter -> Style -> Bracket style 修改为 Java
然后,Settings -> Editor... -> Source formatter -> Padding 在 Insert space padding around operators 前面打上勾


边栏推荐
猜你喜欢

解题-->在线OJ(十三)

Blue Bridge Cup -- Analysis of the second batch of test questions of the 13th session

ShapeShifter: Robust Physical Adversarial Attack on Faster R-CNN Object Detector

cv2.cvtColor

Unexpected exception ... code: Badrequest when downloading Xilinx 2018.2

Use of parameter in Simulink for AUTOSAR SWC

【工控老马】西门子PLC s7-300SCL编程详解

VMware vcenter/ESXI系列漏洞总结

Matlab Simulink simulation and analysis of power grid sweep frequency

Detailed design of PLC program control system for washing machine
随机推荐
SAP ui5 Beginner (I) Introduction
[translation] swarmed out. Design methods for building modern applications
打包时提示: Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘
Schnuka: what is visual positioning system? How visual positioning system works
1031 Hello World for U
软件测试鸾音鹤信
ShapeShifter: Robust Physical Adversarial Attack on Faster R-CNN Object Detector
tf.to_int64
Listen to textarea input through Keyup to change button style
Viewing application and installation of Hana database license
Vulnhub's DC8 target
cv2.cvtColor
C实战——高配版贪吃蛇游戏设计
Imx6dl4.1.15 supports EIM bus (upper) - actual operation and modification.
100 lectures on Excel advanced drawing skills (VI) - practical application cases of Gantt chart in project progress
Roblox sword nine sword two
指针引用数组元素
数组知识点小结
Kingbasees coping with transaction rollback caused by too fast growth of table age
Oracle 批量插入数据-插入民族数据