How to use gitlens.remotes in settings.json for github repo #3282
Unanswered
guochen-code
asked this question in
Q&A
Replies: 2 comments
-
Looking pretty close @guochen-code - you can get some hints on the syntax in VS Code by hovering over the value string. It shows you also need to use Also "gitlens.remotes": [
{
"domain": "github.com",
"type": "GitHub",
"protocol": "https",
"name": "GitHub",
"urls": {
"repository": "https://github.com/gitkraken/{repo}",
"branches": "https://github.com/gitkraken/{repo}/branches",
"branch": "https://github.com/gitkraken/{repo}/tree/{branch}",
"commit": "https://github.com/gitkraken/{repo}/commit/{id}",
"file": "https://github.com/gitkraken/{repo}/blob/{branch}/{file}",
"fileInBranch": "https://github.com/gitkraken/{repo}/blob/{branch}/{file}",
"fileInCommit": "https://github.com/gitkraken/{repo}/blob/{sha}/{file}",
"fileLine": "https://github.com/gitkraken/{repo}/blob/{branch}/{file}#L{line}",
"fileRange": "https://github.com/gitkraken/{repo}/blob/{branch}/{file}#L{start}-L{end}",
}
}
], |
Beta Was this translation helpful? Give feedback.
0 replies
-
For me it also wasnt working. I figured out I had to set the "type" to "Custom", instead of "GitLab". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this setup in the settings.json file in the VS code, but have not seen any effect. Wondering how to use gitlens.remotes with any public GitHub repo (in this example: integrate with vscode-gitlens repo on github). What else should I configure?
{
"gitlens.integrations.enabled": true,
}
Beta Was this translation helpful? Give feedback.
All reactions