TAB indentation in Javascript editor

未關閉
#1,903 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
52/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
javascript

研究方向

首先,使用 JavaScript 檔案在 Generic Code Editor 中重現該行為:在縮排行之間的空白行上按下 TAB,然後貼上具有根層級縮排的程式碼。追蹤編輯器的縮排與貼上處理;完成的標準是空白行的縮排依要求保留,且貼上程式碼的根層級縮排未被移除,或已找出相關設定。

由索引模型根據 Issue 內容生成。

描述

I am using the latest Eclipse 2025-06 (4.36.0), Build id: 20250605-1316
The used download is "for Java Enterprise and Web Development", though stripped some unwanted plugins.

Wild Web Developer HTML, CSS, JSON, Yaml, JavaScript, TypeScript, Node tools 1.3.10.202502071606

I am using "Generic Code Editor" for my .js files to open with. Accoding the "that internet" it is using the Wild Web Code Editor, if the plugin is installed.

If I edit my code and have two indented lines of code with an empty line between them and hit TAB while the cursor is in that empty line, the indentation is removed. I don't want that. Either I want no advanced logic at all here or the line should be indented up to the level of the previous line (like it is done in Java).

And what is even worse is, that if I paste some code in a JS file, all the root level indentations are removed. I really don't want that.

Where can I configure (that bug away)?

主要語言
Java
星號
203
分支
76
平均合併
1 天 5 小時
30 天內合併 PR
30

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

eclipse-wildwebdeveloper/wildwebdeveloper 的其他 Issue

查看 eclipse-wildwebdeveloper/wildwebdeveloper 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。