VSCode: Add GitLens integration instructions with projects.blender.org #59

Merged
Sean Kim merged 1 commits from Sean-Kim/blender-developer-docs:main into main 2024-05-28 03:40:38 +02:00
Showing only changes of commit 7e2fa7789f - Show all commits

View File

@ -397,4 +397,30 @@ instructions on using VSCode for Blender development.
> ``` > ```
>? NOTE: **Git Integration** >? 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}"
> }
> }]
> ```