Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Git AssistNew to Visual Studio Code? Get it now.
Git Assist

Git Assist

mi-wada

|
1 install
| (0) | Free
Git/GitHub helper commands. Copy a GitHub permalink for the current selection.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Assist

Git/GitHub helper commands for VS Code.

Features

  • Copy GitHub Permalink: Copy a GitHub permalink for the current line or selection.

Usage

  1. Place your cursor on a line, or select a range of lines
  2. Open the command palette (Cmd+Shift+P on Mac, Ctrl+Shift+P on Windows/Linux)
  3. Run the command "gitassist: Copy GitHub Permalink"

Alternatively, you can use the default keyboard shortcut Ctrl+; Ctrl+C (Mac: Cmd+; Cmd+C), or right-click the line number gutter.

The copied permalink looks like:

https://github.com/owner/repo/blob/0123456789abcdef/src/extension.ts#L5-L8

Customizing Keyboard Shortcut

If you prefer a different shortcut, you can customize it in your keybindings.json:

[
  {
    "key": "cmd+k cmd+c",
    "command": "gitassist.copyGitHubPermalink",
    "when": "editorTextFocus && resourceScheme == file"
  }
]

Requirements

  • Visual Studio Code 1.125.0 or later.

Install

code --install-extension mi-wada.gitassist

Release

Manual release (current)

Releases are published manually from a local checkout.

  1. Make sure you are logged in to the VS Code Marketplace:

    npx @vscode/vsce login mi-wada
    
  2. Bump the version and publish. patch, minor, or major updates package.json, creates a git commit and tag, and uploads to the Marketplace:

    npx @vscode/vsce publish patch
    

    Or specify an explicit version:

    npx @vscode/vsce publish 0.1.0
    
  3. Push the version commit and tag:

    git push origin main --tags
    

Note: Azure DevOps global PATs are retired on December 1, 2026, so PAT-based publishing must be migrated before then.

Future: automated release with OIDC trusted publishing

vsce publish --oidc lets GitHub Actions publish without a PAT. As of August 2026 the VS Code Marketplace does not yet expose a trusted publishing configuration (the vsce-side support shipped first), so this cannot be used yet. Once the Marketplace supports it:

  1. Configure the trusted publishing policy on the Marketplace for the repository (mi-wada/vscode-gitassist) and the release workflow.

  2. Re-add a release.yml workflow triggered on v* tag pushes that requests an OIDC token and publishes:

    jobs:
      publish:
        runs-on: ubuntu-latest
        permissions:
          contents: write
          id-token: write
        steps:
          - uses: actions/checkout@v4
          - uses: actions/setup-node@v4
            with:
              node-version: 22
          - run: npm ci
          - run: npx @vscode/vsce publish --oidc --no-git-tag-version --no-update-package-json
    

Known Issues

  • Only GitHub remotes are supported. GitLab and other remote hosts are not detected.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft