akalongman/sublimetext-codeformatter
View on GitHubAdd ability to replace chunks of code
Open
#12 opened on Jun 26, 2013
Hacktoberfestenhancement
Repository metrics
- Stars
- (775 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
There is a good proverb that I like:
Why write a program that throws lint errors when it can correct the code?
Last night, this idea rattled out of my head and it goes like this; combine the awareness of SublimeLinter with the formatters of CodeFormatter
on_post_save, format code into memory or temporary file- Diff original code against formatted code
- Show gutter warnings and highlight lines that vary based on diff
- Allow user to take action and apply diff to that section of code
Here is a mocked prototype I wrote:
