Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Reformat Selection Support

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

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java

Research direction

Start with plugin-gradle/IDE_HOOK.md, the IDE integration entry point mentioned in the issue, and determine how selected ranges would be represented and processed. The work is complete when the IDE plugin can reformat a text selection as well as a whole file, with the behavior documented and verified.

Written by the indexing model from the issue text.

Description

enhancement

Hello,

Does Spotless support reformatting a text range rather than the whole file? Thinking about creating a plugin for an IDE many IDEs support reformatting both the entire file and a text selection, so having that parity with a spotless plugin would be great.

Thanks!

Dominant language
Java
Stars
5.7k
Forks
560
Avg merge
1d 13h
Merged PRs (30d)
43

Contributor guide

Open the contributing guide

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 diffplug/spotless

All issues in diffplug/spotless

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.