Skip to content

kpobb1989/DotNetFormatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DotNetFormatter

DotNetFormatter is a handy tool that automatically formats C# code on LeetCode and AlgoExpert pages. Behind the scenes, it works by integrating a user script (via Tampermonkey) with a local .NET API. Once set up, the formatter hooks into LeetCode’s and AlgoExpert's editors and gives you quick access to beautifully formatted C# code.

How to install

  1. Install Tampermonkey extension for Google Chrome
  2. Install user script
  3. Install .Net Runtime (If it isn't installed already)
  4. Download DotNetFormatter.exe (make sure port 5000 is available)

How to use

  1. Run DotNetFormatter.exe. It functions as an API and runs at http://localhost:5000 image

Visiting this link will display a Swagger page image

  1. Open LeetCode or AlgoExpert problem page, e.g.: https://leetcode.com/problems/generate-parentheses/

  2. Select C# as a programming language image

  3. Press ALT + SHIFT + F to format the C# code

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published