How to tell eclipse to not format parts of a codefile (pressing Strg + Shift + F)

后端 未结 2 1864
隐瞒了意图╮
隐瞒了意图╮ 2021-01-26 03:04

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

2条回答
  •  不知归路
    2021-01-26 03:40

    Try to make an empty comment after each line:

    define([ //
        'jquery', //
        'aloha', //
        'aloha/plugin', //
        'ui/ui', //
        'ui/scopes', //
        'ui/button', //
        'ui/toggleButton', //
    ...
    

    Not nice, but I think it will work.

提交回复
热议问题