Skip to content

More mature indent #457

Open
Open
@aaFn

Description

@aaFn

Hello, I am a Firefox plugin developer and recently upgraded from eclipse "javascript-latest-released" 2020-30 to 2020-06 = apparently Wild Web Developer has now replaced the old Javascript editor. Apart from the fact that this required me to install node.js (which I don't care about 🙄 ), I get now painful regressions on editing code with indentation.

  1. I indent code by 2 characters: there is no option in Window->Preferences->General->Editors->.. to set indent to 2 characters, and then each time I open a new block like an "if" statement, it forces the indent of 4 characters which I have to correct
  2. WWD doesn't support a mix of tabs and spaces in indents, like many editors do
    • Whenever I press enter at end of a line indented with for example 1 tab and 2 spaces, no indent is inserted on the next line, so I have to manually add it ☹️
    • In fact, as soon as there are spaces in an indent, WWD does not reproduce them
  3. When pressing tab at begining of an already indented line, it only inserts a tab
    • In previous eclipse version it was converting my leading indent to an optimal combined string of tabs and spaces representing the same amount of characters, which was very handy (and the minimum of what I expect of a code editor).
    • Even better, it was aligning the indent on the line to the one of previous line with code, or more exactly to the correct one in the block. Now, this does not happen, and I have to do it manually.

This is really making things painful on my existing code. And I do not want to configure tab as being 2 characters since most of the editors set it to 4 characters.

This is making me consider to switch to another IDE, but before I do that, I want to see with you if

  • there is a way to configure things somewhere else for WWD to work better on indentation ?
  • or if I am missing something ?
  • or if indeed you can consider improving the indent function in WWD ?
  • and if there are workarounds on the above that you see ?

Thank you much, aaFn.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions