eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper

More mature indent

Offen
#457 9 Kommentare 4 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

upstream-tm4e
Vorherrschende Sprache
Java
Sterne
201
Forks
76
Ø Merge
4 T. 7 Std.
Gemergte PRs (30 T.)
21

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Das Issue nennt keine Quelldateien oder Tests; beginne damit, das Einrückungsverhalten von WWD und die Einstellungen unter Window→Preferences→General→Editors zu überprüfen. Reproduziere die Einrückung verschachtelter Blöcke, eine Mischung aus Tabs und Leerzeichen sowie das Drücken von Tab in einer eingerückten Zeile; als erledigt gilt die Aufgabe, wenn die vorgesehenen Workflows mit zwei Leerzeichen und gemischter Einrückung unterstützt oder eindeutig konfiguriert sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
tooling
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.