如何格式化Android Studio中code(的IntelliJ) [英] How to format code in Android Studio (IntelliJ)
本文介绍了如何格式化Android Studio中code(的IntelliJ)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在一个新创建的Android应用程序格式化code。
I want to format code in a freshly created Android application.
我以这种方式搞砸code:
I messed up the code in this manner:
private static final
int AUTO_HIDE_DELAY_MILLIS
= 3000;
我想它 CTRL + ALT + L
格式,但它不修复code。我使用的是Windows 8.1。
I want to format it with ctrl+alt+L
but it is not repairing the code. I use Windows 8.1.
推荐答案
如果你想:
- 订单/格式code:按下Ctrl + Alt + L
- 实施方法:控制+ I
- 覆盖方法:控制+ O
有没有必要它是大写字母这只是例子。
There no need it to be capital letters this is just for the example.
亲切的问候!
这篇关于如何格式化Android Studio中code(的IntelliJ)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文