Re: Applying GNU style automatically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 20 Sept 2022 at 02:18, Zopolis0 via Gcc-help
<gcc-help@xxxxxxxxxxx> wrote:
>
> The editor I use (Sublime Text) disagrees with gcc on tabs vs spaces and
> tabs-spaces mixing, so every change I make is surrounded by a lot of
> whitespace diff.
>
> This makes git merge freak out, and I want to get rid of it.
>
> I have too many patches to do manually, so I was wondering whether
> check_GNU_style.(sh/py) had a way to automatically apply the recommended
> whitespace changes.

You can get a plugin for sublimetext to make it follow the
https://editorconfig.org/ spec. That will allow you to put a
.editorconfig file in your GCC source tree and your editor will use
the desired config. You can add the .editorconfig file to the
.git/info/exclude file so that Git ignores it.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux