当前位置:网站首页>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 前面打上勾


边栏推荐
猜你喜欢

100 lectures on Excel advanced drawing skills (VI) - practical application cases of Gantt chart in project progress

Use of parameter in Simulink for AUTOSAR SWC

VMware vcenter/ESXI系列漏洞总结

postman预处理/前置条件Pre-request

C实战——高配版贪吃蛇游戏设计

Problem solving -- > online OJ (13)

手把手系列---安装SpotBugs、并快速上手使用

Swin Transformer理论讲解

Explain canfd message and format in AUTOSAR arxml in detail

Prompt during packaging: property 'sqlsessionfactory' or 'sqlsessiontemplate'‘
随机推荐
Perceiving healthy life, enabling boundless connection -- contributing to openharmony 3.1 ecological construction
Up and down transitions in polymorphism
【工控老马】基于PLC的花样喷泉设计原理详解
Vulnhub's dc7 target
tf.compat.v1.assign
关于KingbaseES临时文件过大问题
【工控老马】单片机与西门子S7-200通信原理详解
Appium automation test foundation ADB common commands (II)
【工控老马】PLC六路抢答器系统设计详解
Reasons why the ext.dic file configured in ES does not take effect
面试官:为什么数据库连接很消耗资源,资源都消耗在哪里?
ShapeShifter: Robust Physical Adversarial Attack on Faster R-CNN Object Detector
Kyushu cloud helps Inner Mongolia's "counting from the east to the west" project to drive the smart new ecology of the surveying and mapping industry
Concurrent idempotent anti shake
Imx6dl4.1.15 supports EIM bus (upper) - actual operation and modification.
多态中的向上和向下转型
Vulnhub's DC8 target
Markdown skill tree (4): link
How to permanently set Mysql to utf8 encoding?
[translation] how Bink drives the digital loyalty transactions of some of the largest banks in the UK