I'm using VS Code to work on PostgreSQL, and the .vscode folder constantly shows up in "git status". To eliminate this noise, I'd like to add the folder to .gitignore.
The comment in the file you are proposing to edit says:
# This file contains ignores for build artifacts from standard builds. # Auxiliary files from local workflows, your preferred editor, etc. should # be ignored locally using $GIT_DIR/info/exclude or ~/.gitexclude.
.vscode falls into the "preferred editor" category of auxiliary files.