Eclipse Javascript formatter (ctrl-shift-f)

前端 未结 5 1697
北恋
北恋 2021-02-02 09:38

I don\'t like asking this question but I have honestly been looking for a way to figure this out for a very long time.

This is a simple question. I have been using NetBe

5条回答
  •  走了就别回头了
    2021-02-02 10:16

    I have found this as well, and it is one of the main reasons why I largely moved back to NetBeans.

    I don't have the solution, but I can give you some general tips that worked for me, at least to some extend.

    1. Instead of brackets like this: }); try to put each one on a new line.
    2. Instead of parsing parameters like this:

      calendar(id UNIQUE, summary, description, location, startdate, enddate)

    maybe try

    calendar(id 
    UNIQUE, 
    summary, 
    description, 
    location, 
    startdate, 
    enddate)
    

       3. Lastly you could try to put the + on a new line when concatenating strings.

    Like I said, I know this does not solve your problem, but I figured at least it might help you until a better solution comes along.

    Best of luck.

提交回复
热议问题