当前位置: 技术问答>linux和unix
格式缩进
来源: 互联网 发布时间:2016-11-06
本文导语: 我用astyle --style=linux 格式化code后,有些格式会变成这样: static const struct file_operations v4l2_unlocked_fops = { .owner = THIS_MODULE, .read = v4l2_read,...
我用astyle --style=linux 格式化code后,有些格式会变成这样:
static const struct file_operations v4l2_unlocked_fops =
{
.owner = THIS_MODULE,
.read = v4l2_read,
.write = v4l2_write,
.open = v4l2_open,
.mmap = v4l2_mmap,
.unlocked_ioctl = v4l2_unlocked_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = v4l2_compat_ioctl32,
#endif
.release = v4l2_release,
.poll = v4l2_poll,
怎么才能取消这个缩进呢?有时候赋值多了,就缩到很后面了。
static const struct file_operations v4l2_unlocked_fops =
{
.owner = THIS_MODULE,
.read = v4l2_read,
.write = v4l2_write,
.open = v4l2_open,
.mmap = v4l2_mmap,
.unlocked_ioctl = v4l2_unlocked_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = v4l2_compat_ioctl32,
#endif
.release = v4l2_release,
.poll = v4l2_poll,
怎么才能取消这个缩进呢?有时候赋值多了,就缩到很后面了。
|
你贴的时候可以选择html格式,点上面一排按钮中的带#的那个
我通常用UE自带的艺术样式,试了下,所有成员都是对齐的
我通常用UE自带的艺术样式,试了下,所有成员都是对齐的
|
用VC的缩进, 我平时就拿VC写, 到linux编