久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<legend id='CZzeL'><style id='CZzeL'><dir id='CZzeL'><q id='CZzeL'></q></dir></style></legend>

  1. <tfoot id='CZzeL'></tfoot>

      • <bdo id='CZzeL'></bdo><ul id='CZzeL'></ul>
    1. <small id='CZzeL'></small><noframes id='CZzeL'>

      <i id='CZzeL'><tr id='CZzeL'><dt id='CZzeL'><q id='CZzeL'><span id='CZzeL'><b id='CZzeL'><form id='CZzeL'><ins id='CZzeL'></ins><ul id='CZzeL'></ul><sub id='CZzeL'></sub></form><legend id='CZzeL'></legend><bdo id='CZzeL'><pre id='CZzeL'><center id='CZzeL'></center></pre></bdo></b><th id='CZzeL'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='CZzeL'><tfoot id='CZzeL'></tfoot><dl id='CZzeL'><fieldset id='CZzeL'></fieldset></dl></div>
    2. 如何告訴 Eclipse 不格式化代碼文件的一部分(按

      How to tell eclipse to not format parts of a codefile (pressing Strg + Shift + F)(如何告訴 Eclipse 不格式化代碼文件的一部分(按 Strg + Shift + F))
      <tfoot id='AtPws'></tfoot>

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

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

                <tbody id='AtPws'></tbody>
              • <bdo id='AtPws'></bdo><ul id='AtPws'></ul>
              • 本文介紹了如何告訴 Eclipse 不格式化代碼文件的一部分(按 Strg + Shift + F)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我真的很喜歡 autofromat 功能.我讓你的代碼更具可讀性,如果 JavaScript 會告訴你什么時候出現語法錯誤(缺少括號等).

                I really love the autofromat feature. I makes your code more readable and in case of JavaScript tells you, when there are synatcs errors (missing brackets etc.).

                但有時格式會使代碼更難閱讀.例如當它將長數組初始化放入一行時.在那種情況下,我不希望他格式化它,而是讓它提供多行.例如

                However sometimes the formatting makes the code harder to read. e.g. when it puts a long array inizalisation into a single line. In that case I don't want him to format it, but rather leave it ofer multiple lines. E.g.

                define([
                    'jquery', 
                    'aloha', 
                    'aloha/plugin', 
                    'ui/ui', 
                    'ui/scopes', 
                    'ui/button', 
                    'ui/toggleButton', 
                    'ui/port-helper-attribute-field', 
                    'ui/text'
                // 'css!youtube/css/youtube.css'
                ], 
                    function(
                        $, 
                        Aloha, 
                        Plugin, 
                        Ui, 
                        Scopes, 
                        Button, 
                        ToggleButton, 
                        AttributeField) 
                        {
                

                這個數組應該保持這樣,不要變成這樣:

                this array should stay like this and don't become this:

                define(['jquery', 'aloha', 'aloha/plugin', 'ui/ui', 'ui/scopes', 'ui/button', 'ui/toggleButton', 'ui/port-helper-attribute-field', 'ui/text' ], function($, Aloha, Plugin, Ui, Scopes, Button, ToggleButton, AttributeField) {
                

                有沒有特殊的標簽,告訴eclipse不要格式化代碼?

                Is there a special tag, to tell eclipse not to format the code?

                推薦答案

                好的,我花了一些時間才找到正確的設置,所以我將在這里發布一個教程.

                OK, it took me some time to find the right setting so I will post a toturial here.

                轉到窗口首選項并搜索您正在使用的格式化程序.就我而言,它位于Aptana Studia"->格式化程序"下.(取決于您的包,這會有所不同,例如 Java 格式化程序位于Java"->代碼樣式"->格式化程序"下).

                Go to Window Preferences and Search the Formatter you are using. In my case it was under 'Aptana Studia' -> 'Formatter'. (Depending on your Package this differs, e.g. the Java Formatter is under 'Java' -> 'Code Style' -> 'Formater').

                現在創建一個新的構建配置文件,因為您無法覆蓋舊配置文件.

                Noww create a new Build profile since you can't override the old one.

                現在啟用格式化程序標簽.

                Now enable the Formatter tags.

                現在你可以使用

                 - @formatter:on
                 - @formatter:off
                

                用于禁用代碼格式化的標簽.

                tags to disable code formatting.

                示例:這段代碼:

                    function hello() {             return 'hello';
                }
                
                //@formatter:off
                /*
                   |      _,,,---,,_
                   /,`.-'`'    -.  ;-;;,_
                  |,4-  ) )-,_..; (  `'-'
                 '---''(_/--'  `-'\_)  fL
                
                 */
                //@formatter:on
                
                function 
                
                
                world() {
                    return 'world';
                }
                

                會被格式化成這樣

                function hello() {
                    return 'hello';
                }
                
                //@formatter:off
                /*
                   |      _,,,---,,_
                   /,`.-'`'    -.  ;-;;,_
                  |,4-  ) )-,_..; (  `'-'
                 '---''(_/--'  `-'\_)  fL
                
                 */
                //@formatter:on
                
                function world() {
                    return 'world';
                }
                

                注意函數定義的格式是正確的,而 ascii 藝術不是

                Note how the function definition is formatted correct, while the ascii art isn't

                學分:

                1. Katja Christiansen 發表評論
                2. https://stackoverflow.com/a/3353765/639035:類似的答案
                1. Katja Christiansen for his comment
                2. https://stackoverflow.com/a/3353765/639035 : for a similar answer

                這篇關于如何告訴 Eclipse 不格式化代碼文件的一部分(按 Strg + Shift + F)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                How to convert Integer to int?(如何將整數轉換為整數?)
                Inconsistent behavior on java#39;s ==(java的行為不一致==)
                Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)
                Unexpected result in long/int division(意外結果導致長/整數除法)
                Java - Change int to ascii(Java - 將 int 更改為 ascii)
                negative char Value JAVA(負字符值 JAVA)

                  <tbody id='AG0K4'></tbody>

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

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

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

                      1. <legend id='AG0K4'><style id='AG0K4'><dir id='AG0K4'><q id='AG0K4'></q></dir></style></legend>
                        <tfoot id='AG0K4'></tfoot>
                          主站蜘蛛池模板: 国产欧美一区二区精品忘忧草 | 国产精品国产a | 国产免费一区二区 | 中文字幕在线一区二区三区 | 超碰在线观看97 | 欧美激情国产日韩精品一区18 | 久久久精 | 国产欧美日韩综合精品一区二区 | 一区二区三区亚洲 | 午夜精品久久久久久久星辰影院 | 日韩免费福利视频 | jizjizjiz中国护士18 | 亚洲国产在 | 福利网址 | 最新免费av网站 | 色天堂视频 | 国产精久久久久久久妇剪断 | 亚洲女人天堂成人av在线 | 欧美综合一区二区三区 | 精国产品一区二区三区四季综 | 国产成人免费网站 | av一区在线观看 | 羞羞视频在线观看 | 亚洲精品综合 | www.日本在线播放 | 成人欧美一区二区三区1314 | 精产国产伦理一二三区 | 91在线精品视频 | 国产精品欧美一区二区三区不卡 | 开操网 | 韩日av在线 | 99精品99| 欧美亚洲国语精品一区二区 | 亚洲色图在线观看 | 欧美一区二区在线播放 | 男女一区二区三区 | 亚洲国产精品久久久久 | 97人人澡人人爽91综合色 | 国产免费一区二区 | 在线看免费 | 一区二区三区免费 |