简体   繁体   English

月食中的文本对齐问题

[英]text alignment issue in eclipse luna

Unfortunately, each line of my JSP file in eclipse luna is split into many lines like below. 不幸的是,我的eclipse luna中的JSP文件的每一行都分成许多行,如下所示。 It's difficult to adjust them manually. 手动调整它们很困难。 Please suggest me whether any option in eclipse that will adjust all the lines in my JSP file. 请建议我eclipse中是否有任何选项可以调整JSP文件中的所有行。

$('#optionDiv').find("div#option_" + a).find("input#optionText_" + a)
            .attr(
                "name",
                "myField.optionList["
                + a + "].myFieldDescDataList["
                + secondSplit[2]
                + "].desc");

For Format you can use CTRL + SHIFT + F 对于格式,您可以使用CTRL + SHIFT + F

For correct indentation use CTRL + I 要正确缩进,请使用CTRL + I

在此处输入图片说明

If these two do not solve your issue,then you will have to go manually. 如果这两个方法不能解决您的问题,则必须手动进行操作。

转到eclipse-> preferences-> Java-> Code Style以编辑您的代码样式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM