eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper

More mature indent

オープン
#457 コメント 9 件 リアクション 4 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

upstream-tm4e
主要言語
Java
スター
201
フォーク
76
平均マージ
4日 7時間
マージ済み PR(30日)
21

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

この issue ではソースファイルやテストが指定されていないため、まず WWD のインデント動作と Window→Preferences→General→Editors の設定を確認します。ネストしたブロックのインデント、タブとスペースの混在、インデントされた行で Tab を押す操作を再現します。2 つのスペースを使うワークフローと混在インデントのワークフローがサポートされているか、明確に設定されていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。