eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper

More mature indent

Open
#457 9 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

upstream-tm4e
Dominant language
Java
Stars
201
Forks
76
Avg merge
4d 7h
Merged PRs (30d)
21

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source files or tests; start by reviewing WWD's indentation behavior and the Window→Preferences→General→Editors settings. Reproduce nested-block indentation, mixed tabs and spaces, and pressing Tab on an indented line; done means the intended two-space and mixed-indentation workflows are supported or clearly configured.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.