<i id='NQHGY'><tr id='NQHGY'><dt id='NQHGY'><q id='NQHGY'><span id='NQHGY'><b id='NQHGY'><form id='NQHGY'><ins id='NQHGY'></ins><ul id='NQHGY'></ul><sub id='NQHGY'></sub></form><legend id='NQHGY'></legend><bdo id='NQHGY'><pre id='NQHGY'><center id='NQHGY'></center></pre></bdo></b><th id='NQHGY'></th></span></q></dt></tr></i><div id='NQHGY'><tfoot id='NQHGY'></tfoot><dl id='NQHGY'><fieldset id='NQHGY'></fieldset></dl></div>

        <bdo id='NQHGY'></bdo><ul id='NQHGY'></ul>

      <small id='NQHGY'></small><noframes id='NQHGY'>

      <legend id='NQHGY'><style id='NQHGY'><dir id='NQHGY'><q id='NQHGY'></q></dir></style></legend>
    1. <tfoot id='NQHGY'></tfoot>

        Java 如何美化 Eclipse IDE 中的 java 代码

        时间:2023-08-21

              <i id='VyVMJ'><tr id='VyVMJ'><dt id='VyVMJ'><q id='VyVMJ'><span id='VyVMJ'><b id='VyVMJ'><form id='VyVMJ'><ins id='VyVMJ'></ins><ul id='VyVMJ'></ul><sub id='VyVMJ'></sub></form><legend id='VyVMJ'></legend><bdo id='VyVMJ'><pre id='VyVMJ'><center id='VyVMJ'></center></pre></bdo></b><th id='VyVMJ'></th></span></q></dt></tr></i><div id='VyVMJ'><tfoot id='VyVMJ'></tfoot><dl id='VyVMJ'><fieldset id='VyVMJ'></fieldset></dl></div>

                  <tbody id='VyVMJ'></tbody>
                  <bdo id='VyVMJ'></bdo><ul id='VyVMJ'></ul>
                  <legend id='VyVMJ'><style id='VyVMJ'><dir id='VyVMJ'><q id='VyVMJ'></q></dir></style></legend>

                  <small id='VyVMJ'></small><noframes id='VyVMJ'>

                  <tfoot id='VyVMJ'></tfoot>
                  本文介绍了Java 如何美化 Eclipse IDE 中的 java 代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我使用 Eclipse Helios 版本作为 IDE 并使用Java.

                  I am using Eclipse Helios Version as an IDE and developing code using Java.

                  对我来说,好处是代码运行良好,但坏处是代码看起来不太好(我的意思是在 if-else 语句以及 for 和 while 中使用的控制结构中使用的空格和括号循环散落在各处)

                  The good thing for me is that the code works well, but the bad thing is that the code doesn't look good ( I mean spaces and brackets used in control structures used in if-else statments as well as for and while loops scattered here and there )

                  我使用了 Ctrl + Shift + F 以及在线工具 (http://www.prettyprinter.de/) 进行格式化,这样看起来更糟.

                  I have used Ctrl + Shift + F , as well as an online tool (http://www.prettyprinter.de/) for formatting , and with this it looks more worse.

                  由于这里有很多开发人员,您如何正确安排代码以及如何使其看起来不错.

                  As a lot of developers are out here, how do you arrange your code properly and how you make it look good.

                  请告诉我,我担心一些资深人士可能会审查代码.

                  Please tell me , I am worried as some senior person might review the code .

                  推荐答案

                  尝试更改Window->Preferences->Java->Code Formatter->LineSplittin->最大行长度最多120或140个符号.

                  Try to change Window->Preferences->Java->Code Formatter->LineSplittin-> Maximum Line length up to 120 or 140 symbols.

                  这篇关于Java 如何美化 Eclipse IDE 中的 java 代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:您最喜欢的 Eclipse 插件是什么? 下一篇:选择一个工具来创建/维护自定义 Eclipse 发行版

                  相关文章

                    <bdo id='of5it'></bdo><ul id='of5it'></ul>
                  <legend id='of5it'><style id='of5it'><dir id='of5it'><q id='of5it'></q></dir></style></legend>
                  <i id='of5it'><tr id='of5it'><dt id='of5it'><q id='of5it'><span id='of5it'><b id='of5it'><form id='of5it'><ins id='of5it'></ins><ul id='of5it'></ul><sub id='of5it'></sub></form><legend id='of5it'></legend><bdo id='of5it'><pre id='of5it'><center id='of5it'></center></pre></bdo></b><th id='of5it'></th></span></q></dt></tr></i><div id='of5it'><tfoot id='of5it'></tfoot><dl id='of5it'><fieldset id='of5it'></fieldset></dl></div>
                • <tfoot id='of5it'></tfoot>

                    <small id='of5it'></small><noframes id='of5it'>