Re:Git ignores .gitignore with .gitignore in .gitignore
by Hackbraten on Wednesday May 18, 2022 @01:19PM
(#31425266)
One user programmatically changing things to suit themselves is supposed to do so in their user settings, which has precedence over the checked-in copy. That way, you have the best of both worlds: easy set-up for everyone who wants it but you can override it without touching the VCS.
[ Parent
| on HN ]
Re:Git ignores .gitignore with .gitignore in .gitignore
by Hackbraten on Thursday May 19, 2022 @03:34PM
(#31439083)
Update: turns out the precedence rules are a little more subtle than I thought.
See also: https://code.visualstudio.com/docs/getstarted/settings#_sett...
Re:Git ignores .gitignore with .gitignore in .gitignore
by DangitBobby on Thursday May 19, 2022 @12:17AM
(#31430706)
Can you override user settings at the project level?
Re:Git ignores .gitignore with .gitignore in .gitignore
by Hackbraten on Thursday May 19, 2022 @03:33PM
(#31439057)
Yes, project-level (aka workspace) settings generally override user settings.
But then again, language-specific settings will trump all other settings. And that’s one way to override workspace-level settings in your user settings if you want.
Here’s a detailed list of all levels of settings in VS Code, ordered by precedence: https://code.visualstudio.com/docs/getstarted/settings#_sett...