欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Eclipse代碼格式化設(shè)置簡單介紹

 更新時間:2017年10月26日 11:11:07   作者:y151706928  
這篇文章主要介紹了Eclipse代碼格式化設(shè)置簡單介紹,具有一定參考價值,需要的朋友可以了解下。

自用項目中統(tǒng)一Eclipse格式化Java、JavaScript、JSP、HTML代碼設(shè)置

1.Window->Preferences 
//Java 格式化 
2.Java->Code Style->Formatter->New->Edit->Line Wrapping 
3.Maximum Line width = 180 
4.Set line width for preview window = 180 
//JavaScript 格式化 
5.JavaScript->Code Style->Formatter->New->Edit->Line Wrapping 
6.Maximum Line width = 180 
7.Set line width for preview window = 180 
8.Tab標(biāo)簽頁->Comments 
9.Maximum line width for comments = 180 
//JSP|HTML頁面 格式化 
10.Web->HTML Files->Editor 
Line width = 180 
Inline Elements 選中所有-> Remove 

格式化前:

<script> 
    $("#loginBtn") 
        .click( 
            function() { 
              $ 
                  .ajax({ 
                    url : "/Test/userInfo/login", 
                    type : 'POST', 
                    dataType : 'json', 
                    data : { 
                      userAccount : $("#userAccount") 
                          .val(), 
                      password : $("#password").val() 
                    }, 
                    success : function(data, textStatus, 
                        xhr) { 
 
                      window.location.href = "/Test/userInfo/userlogin"; 
                    }, 
                    error : function(xhr, textStatus, 
                        errorThrown) { 
                      //alert("登錄異常請重新登錄") 
                      $.messager.show({ 
                        title : '提示', 
                        msg : '登錄異常請重新登錄', 
                      }); 
 
                    }, 
                    complete : function() { 
                      // $yr.closeMask(); 
                    } 
                  }); 
 
            }); 
</script> 

格式化后:

<script> 
    $("#loginBtn").click(function() { 
      $.ajax({ 
        url : "/Test/userInfo/login", 
        type : 'POST', 
        dataType : 'json', 
        data : { 
          userAccount : $("#userAccount").val(), 
          password : $("#password").val() 
        }, 
        success : function(data, textStatus, xhr) { 
 
          window.location.href = "/Test/userInfo/userlogin"; 
        }, 
        error : function(xhr, textStatus, errorThrown) { 
          //alert("登錄異常請重新登錄") 
          $.messager.show({ 
            title : '提示', 
            msg : '登錄異常請重新登錄', 
          }); 
 
        }, 
        complete : function() { 
          // $yr.closeMask(); 
        } 
      }); 
 
    }); 
</script> 

總結(jié)

以上就是本文關(guān)于Eclipse代碼格式化設(shè)置簡單介紹的全部內(nèi)容,希望對大家有所幫助。感興趣的朋友可以繼續(xù)參閱本站:Java源碼解析之TypeVariable詳解、Java探索之Hibernate主鍵生成策略詳細(xì)介紹等,如有不足之處,歡迎留言參考。感謝朋友們對本站的支持!

相關(guān)文章

最新評論