久久久久久久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)的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                問(wèn)題描述

                我真的很喜歡 autofromat 功能.我讓你的代碼更具可讀性,如果 JavaScript 會(huì)告訴你什么時(shí)候出現(xiàn)語(yǔ)法錯(cuò)誤(缺少括號(hào)等).

                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.).

                但有時(shí)格式會(huì)使代碼更難閱讀.例如當(dāng)它將長(zhǎng)數(shù)組初始化放入一行時(shí).在那種情況下,我不希望他格式化它,而是讓它提供多行.例如

                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) 
                        {
                

                這個(gè)數(shù)組應(yīng)該保持這樣,不要變成這樣:

                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) {
                

                有沒(méi)有特殊的標(biāo)簽,告訴eclipse不要格式化代碼?

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

                推薦答案

                好的,我花了一些時(shí)間才找到正確的設(shè)置,所以我將在這里發(fā)布一個(gè)教程.

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

                轉(zhuǎn)到窗口首選項(xiàng)并搜索您正在使用的格式化程序.就我而言,它位于Aptana Studia"->格式化程序"下.(取決于您的包,這會(huì)有所不同,例如 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').

                現(xiàn)在創(chuàng)建一個(gè)新的構(gòu)建配置文件,因?yàn)槟鸁o(wú)法覆蓋舊配置文件.

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

                現(xiàn)在啟用格式化程序標(biāo)簽.

                Now enable the Formatter tags.

                現(xiàn)在你可以使用

                 - @formatter:on
                 - @formatter:off
                

                用于禁用代碼格式化的標(biāo)簽.

                tags to disable code formatting.

                示例:這段代碼:

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

                會(huì)被格式化成這樣

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

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

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

                學(xué)分:

                1. Katja Christiansen 發(fā)表評(píng)論
                2. https://stackoverflow.com/a/3353765/639035:類(lèi)似的答案
                1. Katja Christiansen for his comment
                2. https://stackoverflow.com/a/3353765/639035 : for a similar answer

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

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

                相關(guān)文檔推薦

                How to convert Integer to int?(如何將整數(shù)轉(zhuǎn)換為整數(shù)?)
                Inconsistent behavior on java#39;s ==(java的行為不一致==)
                Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?0xff000000 存儲(chǔ)為 int?)
                Unexpected result in long/int division(意外結(jié)果導(dǎo)致長(zhǎng)/整數(shù)除法)
                Java - Change int to ascii(Java - 將 int 更改為 ascii)
                negative char Value JAVA(負(fù)字符值 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>
                          主站蜘蛛池模板: 五月天婷婷丁香 | 成人在线观看免费视频 | 亚洲一区综合 | 欧美精品在线一区 | 狠狠操狠狠操 | 日韩精品一区二区三区在线播放 | 4h影视| 成人综合在线视频 | 欧美炮房 | 精品久久久久久久久久久 | 国产视频不卡一区 | 精品国产一区二区三区在线观看 | 一级二级三级在线观看 | 女人天堂av | 欧美一区二区三区精品免费 | 成人免费大片黄在线播放 | 狠狠久久 | 国产一区在线免费观看 | 中文字幕视频在线看5 | 精品国产乱码久久久久久丨区2区 | 在线观看免费黄色片 | 日韩精品一区二区三区中文字幕 | 国产精品日韩欧美一区二区三区 | 亚洲精品在线看 | 国产真实精品久久二三区 | 日韩欧美在线视频一区 | 日韩和的一区二在线 | 女人一区| 91社区在线高清 | 综合亚洲视频 | www.日韩在线| 精品久久久久久国产 | 亚洲精品国产成人 | 日韩av一区二区在线观看 | 国产精品视频免费 | 国产精品久久久久久吹潮 | 91在线一区 | 一级毛片免费 | 日日操夜夜操天天操 | 中文字幕日韩欧美一区二区三区 | 啪一啪在线视频 |