如何在 Android Studio 中创建我自己的“重新格式化代码”样式?

2023-11-26

在 Eclipse 中(窗口 -> 首选项 -> Java -> 代码样式 -> 格式化程序)有一个工具可以创建我自己的格式样式并将其应用到代码中。有没有办法在 Android Studio 中做到这一点(对于 Java 代码)?


要更改格式化程序选项,请转到File | Settings | Code Style | Java

To reformat your code manually, press Ctrl + Alt + L (or using the menu Code | Reformat code...). To reformat the whole source code of your module, just select the module folder first.

有关重新格式化源代码的更多信息可以在IntelliJ 网络帮助

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何在 Android Studio 中创建我自己的“重新格式化代码”样式? 的相关文章

随机推荐