akalongman / akalongman/sublimetext-codeformatter

Add ability to replace chunks of code

未关闭
#12 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement Hacktoberfest
主要语言
Python
星标
772
派生
128
PR 合并指标
30 天内没有已合并 PR

描述

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)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。