如何重新格式化数组初始化程序中的间距? [英] How to reformat spacing in array initializer?

查看:70
本文介绍了如何重新格式化数组初始化程序中的间距?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

int arr [ITEMSIZE] = {13,212, 14,7141,10987 ,6,15};



在本声明中,我通过编辑|重新格式化代码。高级|格式文档但格式不适用于间距。


如何重新格式化数组初始值设定项中的间距?

解决方案

取消选中"保留空格..."选项如下:



int arr[ITEMSIZE] = { 13, 212, 14,7141,10987, 6, 15 };

In this statement, I've reformat code through Edit | Advanced | Format Document but formatting doesn't work on spacing.

How to reformat spacing in array initializer?

解决方案

Uncheck the "Preserve spaces..." option as follows :


这篇关于如何重新格式化数组初始化程序中的间距?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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