From 7e2fa7789fd5808df005d59a74374b44c71da841 Mon Sep 17 00:00:00 2001 From: Sean Kim Date: Tue, 14 May 2024 12:19:45 -0700 Subject: [PATCH] VSCode: Add GitLens integration instructions with projects.blender.org --- .../development_environments/vscode.md | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/docs/handbook/development_environments/vscode.md b/docs/handbook/development_environments/vscode.md index 65045f6e..22e013c5 100644 --- a/docs/handbook/development_environments/vscode.md +++ b/docs/handbook/development_environments/vscode.md @@ -397,4 +397,30 @@ instructions on using VSCode for Blender development. > ``` >? NOTE: **Git Integration** -> TODO +> To have VSCode navigate to the Blender repository from context menus, first install +> the following: +> +> - **Git Lens** (`eamodio.gitlens`) +> +> Add the following to your user `settings.json` +> +> ```json +> ... +> "gitlens.remotes": [{ +> "domain": "projects.blender.org", +> "type": "Custom", +> "name": "Blender", +> "protocol": "https", +> "urls": { +> "repository": "https://projects.blender.org/${repo}", +> "branches": "https://projects.blender.org/${repo}/branches", +> "branch": "https://projects.blender.org/${repo}/commits/${branch}", +> "commit": "https://projects.blender.org/${repo}/commit/${id}", +> "file": "https://projects.blender.org/${repo}/src/{file}${line}", +> "fileInBranch": "https://projects.blender.org/${repo}/src/${branch}/${file}${line}", +> "fileInCommit": "https://projects.blender.org/${repo}/srs/commit/${id}/${file}${line}", +> "fileLine": "#L${line}", +> "fileRange": "#L${start}-L${end}" +> } +> }] +> ``` \ No newline at end of file -- 2.30.2