Skip to content

Bind key to toggle config option #4436

Answered by stefanhaller
lonix1 asked this question in Q&A
Discussion options

You must be logged in to vote

Our code files sometimes have long lines.

Personally, that's where I would start to address the problem. At work we have a hard rule to not allow code lines longer than 90 characters, and we have pre-commit and pre-push hooks that enforce this.

When wrapped, it's hard to discern what's changed because it becomes a multi-line mess of red and green

For this, I'd recommend to look into using a pager that highlights word changes, so that it's less of a mess. I recommend delta, it is very good at this:

In general, it's a good idea to start by describing the problem you have, and not by asking how to do what you think the solution to that problem is.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lonix1
Comment options

@stefanhaller
Comment options

Answer selected by lonix1
@lonix1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants