Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qinezh/vscode-gitlink
Goto/Copy File's Online Link
https://github.com/qinezh/vscode-gitlink
git vscode-extension
Last synced: 10 days ago
JSON representation
Goto/Copy File's Online Link
- Host: GitHub
- URL: https://github.com/qinezh/vscode-gitlink
- Owner: qinezh
- Created: 2016-12-05T11:39:25.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2023-02-04T02:33:46.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T12:30:35.640Z (9 months ago)
- Topics: git, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 7.97 MB
- Stars: 52
- Watchers: 3
- Forks: 10
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitLink
[![Current Version](https://vsmarketplacebadges.dev/version/qezhu.gitlink.svg)](https://marketplace.visualstudio.com/items?itemName=qezhu.gitlink)
[![Installs](https://vsmarketplacebadges.dev/installs-short/qezhu.gitlink.svg)](https://marketplace.visualstudio.com/items?itemName=qezhu.gitlink)
[![Rating](https://vsmarketplacebadges.dev/rating/qezhu.gitlink.svg)](https://marketplace.visualstudio.com/items?itemName=qezhu.gitlink)
[![AppVeyor](https://img.shields.io/appveyor/ci/qinezh/vscode-gitlink.svg)](https://ci.appveyor.com/project/qinezh/vscode-gitlink)Inspired by GitHub extension for Visual Studio, this extension provide features that **Go To** current file's online link in browser and **Copy** the link in clipboard.
## Features
1. Go to the online link of current file.
2. Copy the online link of current file.
3. Supported git repo platforms:
1. GitHub
2. GitLab
3. Azure DevOps
4. BitBucket
5. VSTS## Usage
### Set default remote source
When your project has multiple git remotes, you need to choose the git remote before the git link is generated. If you don't want to choose it every time, you could set the default remote source:
**Workspace Level**: add `gitlink.defaultRemote: ""` in `.vscode/settings.json` under the root of your workspace.
**Global Level**: toggle the preference of vscode, and add `gitlink.defaultRemote: ""` in User Settings.
Please note, you could get the name of your remote sources by the command: `git remote -v`:
```bash
# example
$ git remote -v
origin [email protected]:qinezh/vscode-gitlink (fetch)
origin [email protected]:qinezh/vscode-gitlink (push)
upstream [email protected]:upstream/vscode-gitlink.git (fetch)
upstream [email protected]:upstream/vscode-gitlink.git (push)
```And the sample `settings.json` could be like:
```json
{
"gitlink.defaultRemote": "upsteam"
}
```**Enjoy!**