Eclipse和大括号 [英] Eclipse and curly braces

查看:164
本文介绍了Eclipse和大括号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

有没有快速的方法让Eclipse在下一行(本身)上放置大括号

对于预先编写的代码块,首先按照Don所建议的设置进行设置,然后选择该段代码,然后右键单击源代码 - >格式,并按照首选项中设置的格式进行格式化。 / p>

Is there a quick way to make Eclipse put curly brace on the next line (by itself) on a block of code?

解决方案

For pre-written block of code, first do the settings as suggested by Don and then select that piece of code and right click Source Code->Format and the formatting would take place as per the settings done in the preferences.

这篇关于Eclipse和大括号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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