I work on different projects with their own conventions, so I face similar
challeneges. One thing that has helped has been convincing people to use
EditorConfig, which BBEdit and most IDEs and editors support. It allows you
to configure indentation formats for different languages, so they can use
your global defaults set to your own preferences and still comply with the
arbitrary and often hare-brained demands of the people you sometimes have
to work with.
Another solution I've toyed with but never actually implemented is using
git hooks to change the formatting of files when they're checked in and
checked out. If it could be done right, we'd be able to use any style we
prefer locally and still have the files formatted appropriately for the
project when we check them in.
On Wednesday, October 12, 2016 at 11:33:56 AM UTC-4, Johan Sölve wrote:
> Since I work in the middle of an ongoing indentation war (you know, tabs
> vs. spaces) I have a need for auto-detecting the indentation mode when
> opening a file that BBEdit haven't saved an "auto-expand tabs" setting for.
> Has anyone created such a script?
> I'm not even sure if it's possible to hook a script into opening files, no
> matter how a file was opened. I'm only familiar with menu scripts. It
> wasn't back in 2009 according to this thread
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/bbedit.