Skip to content

[Feature]: Add Reformat with CSharpier on Selected Text in Right Hand Click Context Menu for Visual Studio #1826

@vaibhavPH

Description

@vaibhavPH

Description

Request for Visual Studio 2022/2026 (any edition)

I have read earlier issues like #1772 and #659 and clearly understand that formatting just a portion of file is counter to the ideology of CSharpier and I don't disregard with that thought. However I wanted to present my use case scenario here 🙏

I'm working in a Product based company that requires PR review on each snippet of code that I add to any existing file. Generally files that I'm modifying are huge in terms of lines e.g. (2000-10000 lines of code, I know such large size of files is a discussion for another time but for my sake can we accept this scenario for now as it is ?).

Now as soon as I press save (or right click and select Reformat with CSharpier) then code of the whole file restructures. This creates basically two following problems.

  1. If there are any other legacy developer who are not using CSharpier and working on different area/snippet/method in same file then it creates an insanely large number of merge conflicts as GIT is not able to determine the real changes due to endless line breaks reformatting etc.
  2. PR reviewer who is still a human 😄 generally dismisses my request (or delays to an frustrating long time) as he also gets difficult time to identify which line of code we have to actually modify.

My request is to include an additional context menu option like Reformat the selected code with CSharpier till the whole organization adapts CSharpier (believe me its not easy to change habit of someone else especially when I report to them 😢)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions