Clion代码格式化以对齐变量 [英] Clion code formatting to align variables

查看:84
本文介绍了Clion代码格式化以对齐变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以更改Clion中的选项,以使变量像这样对齐:

Is it possible to change the options in Clion so that the variables are aligned like so:

这应该在结构和方法中应用。

This should be applied in structs and methods.

推荐答案

是。

设置->编辑器->代码样式-> C / C ++->包装和支撑->可变组->在列中对齐

当然,您也可以使用自定义格式设置工具。

You can of course also use a custom formatting tool that does it as well.

这篇关于Clion代码格式化以对齐变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆