uiwjs / uiwjs/react-codemirror

[ Indentation ]: Auto indent after for/while loops

Open
#629 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
161
PR merge metrics
No merged PRs in 30d

Description

after a for or while loop the indentation is acting weird, for the curly braces it is automatically indenting which I don't want, Been struggling with this issue for a month now not been able to find a proper fix for it.
https://github.com/uiwjs/react-codemirror/assets/59951258/f9d2ba5c-7502-4bf0-8314-30cc4904d5dd

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with the linked reproduction and inspect the repository's React and CodeMirror integration to identify where indentation behavior is configured. Reproduce the issue with a for or while loop, then verify that brace indentation matches the expected behavior without affecting other editor indentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.