mirror of
https://github.com/git/git
synced 2024-07-17 11:07:55 +00:00
0f47f78e02
The C/C++ settings are special, as they are the only generated VS Code configurations that *will* change over the course of Git's development, e.g. when a new constant is defined. Therefore, let's only update the C/C++ settings, also to prevent user modifications from being overwritten. Ideally, we would keep user modifications in the C/C++ settings, but that would require parsing JSON, a task for which a Unix shell script is distinctly unsuited. So we write out .new files instead, and warn the user if they may want to reconcile their changes. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com> |
||
---|---|---|
.. | ||
.gitattributes | ||
init.sh | ||
README.md |
Configuration for VS Code
VS Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. Among other languages, it has support for C/C++ via an extension.
To start developing Git with VS Code, simply run the Unix shell script called
init.sh
in this directory, which creates the configuration files in
.vscode/
that VS Code consumes. init.sh
needs access to make
and gcc
,
so run the script in a Git SDK shell if you are using Windows.