eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper

More mature indent

Ouverte
#457 9 commentaires 4 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

upstream-tm4e
Langage dominant
Java
Étoiles
201
Forks
76
Merge moyen
4 j 7 h
PR mergées (30 j)
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.

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

L’issue ne nomme aucun fichier source ni aucun test ; commencez par examiner le comportement d’indentation de WWD et les paramètres de Window→Preferences→General→Editors. Reproduisez l’indentation de blocs imbriqués, le mélange de tabulations et d’espaces, ainsi que l’appui sur Tab dans une ligne indentée ; le travail est considéré comme terminé lorsque les workflows prévus avec deux espaces et avec une indentation mixte sont pris en charge ou clairement configurés.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript
Domaine
tooling
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.