apache / apache/netbeans

Enable code formatting for TypeScript files

Open
#5,000 0 comments 0 reactions 0 assignees View on GitHub
kind:feature needs:triage TypeScript
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Description

At the current state it is not possible to define the formatting rules (like number of spaces per indent) for TypeScript files.
But it is possible to define the rules for JavaScript. So I'd propose to apply those rules to Typescript files as well.

And it would be nice if the formatting rules would work together with [this](https://github.com/Everlaw/nbts) NetBeans plugin.

### Use case/motivation

_No response_

### Related issues

_No response_

### Are you willing to submit a pull request?

No

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing JavaScript formatting-rule handling in NetBeans and review how the nbts plugin is expected to interact with it. Done means TypeScript files accept the same configurable formatting rules, including indentation, and the behavior works with the linked nbts plugin.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.