TAB indentation in Javascript editor

Open
#1,903 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
javascript

Research direction

Start by reproducing the behavior in the Generic Code Editor with a JavaScript file: press TAB on an empty line between indented lines, then paste code with root-level indentation. Trace the editor's indentation and paste handling; done means blank-line indentation is preserved as requested and pasted root-level indentation is not removed, or the relevant configuration is identified.

Written by the indexing model from the issue text.

Description

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)?

Dominant language
Java
Stars
203
Forks
76
Avg merge
1d 5h
Merged PRs (30d)
30

Getting set up

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.

More from eclipse-wildwebdeveloper/wildwebdeveloper

All issues in eclipse-wildwebdeveloper/wildwebdeveloper

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.