redhat-developer / redhat-developer/vscode-java
Add feature for line up comment
Open
Nobody has claimed this yet.
formatter
upstream
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
background: format comment setting is disabled because for preserving whitespace of indentation
// void method()
// {
// System.out.println("indented");
// }
This will make vscode so powerful that eclipse or other ide can't provide if vscode can:
- add option for line up comment even when format comment is disabled
class Test {
void trailingCommented()
{
System.out.println("indented"); //comment
System.out.println("indent"); //comment
}
}
became
class Test {
void trailingCommented()
{
System.out.println("indented"); //comment
System.out.println("indent"); //comment
}
}
- add option to add space after
//even when format comment is disabled
became
class Test {
void trailingCommented()
{
System.out.println("indented"); // comment
System.out.println("indent"); // comment
}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Search the repository for the format-comment setting and its comment-formatting implementation, then compare the behavior with the issue's examples; done means trailing comments can align and optionally gain a space after // while comment formatting remains disabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100