akalongman / akalongman/sublimetext-codeformatter

Add ability to replace chunks of code

Aperta
#12 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
enhancement Hacktoberfest
Lingua principale
Python
Stelle
772
Fork
128
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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
1. `on_post_save`, format code into memory or temporary file
2. Diff original code against formatted code
3. Show gutter warnings and highlight lines that vary based on diff
4. Allow user to take action and apply diff to that section of code

Here is a mocked prototype I wrote:

![selection_014](https://f.cloud.github.com/assets/902488/707595/902d2e42-de23-11e2-9e93-57750b937ea9.png)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.