请支架自动开始新行 [英] Make brackets automatic start new line

查看:136
本文介绍了请支架自动开始新行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉,如果我没能在冠军我怎么样去做来形容;我知道,在AndroidStudio还有就是用这个斗拱符号的方式

Sorry if I was not able to describe in the title how I like to do; I know that in AndroidStudio there is a way to use this brackets notation

protected void onCreate(Bundle savedInstanceState) 
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
}

而不是此

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
}

在换句话说,我想,任何方法的第一个托架,类等开始新行。我知道这是在preferences>编辑器不可能性,但我无法记得我必须改变。
非常感谢和抱歉愚蠢的问题。

In other words I like that the first bracket of any method, class etc starts a new line. I know that it is possibile in preferences > editor but I'm not able to remember how I have to change. Thanks a lot and sorry for the stupid question.

推荐答案

文件|设置|编辑| code风格| Java的|包装和背带|括号放置

File | Settings | Editor | Code Style | Java | Wrapping and Braces | Braces Placement

更改行结束到下一行

这篇关于请支架自动开始新行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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