Skip to content

Instantly share code, notes, and snippets.

@pedoc
Created August 20, 2025 04:05
Show Gist options
  • Save pedoc/dad566c7fb9e62b1b6078692ad710b27 to your computer and use it in GitHub Desktop.
Save pedoc/dad566c7fb9e62b1b6078692ad710b27 to your computer and use it in GitHub Desktop.
tools:
- name: Git-LFS Version
fileStarter: {command: '${git}', parameters: lfs --version}
useForOpen: false
waitUntilFinished: true
filePattern: '*'
- name: Open File
fileStarter: {command: rundll32.exe, parameters: 'URL.DLL,FileProtocolHandler ${filePath}'}
useForOpen: true
waitUntilFinished: false
filePattern: '*'
forFilesNotDirectories: true
- id: openInExplorer
name: Open in Explorer
fileStarter: {command: explorer.exe, parameters: '/e, ${filePath}'}
useForOpen: true
waitUntilFinished: false
filePattern: '*'
forFilesNotDirectories: false
- id: openInCmd
name: Open in Terminal
fileStarter: {command: cmd.exe, parameters: '/c wt.exe -d ${filePath}'}
useForOpen: true
waitUntilFinished: false
filePattern: '*'
forFilesNotDirectories: false
- id: openInPowershell
name: Open in Powershell
fileStarter: {command: cmd.exe, parameters: '/c start pwsh.exe -noexit -command
Set-Location -literalPath ''${filePath}'''}
useForOpen: true
waitUntilFinished: false
filePattern: '*'
forFilesNotDirectories: false
- name: Open in VSCode
fileStarter: {command: 'C:\Program Files\Microsoft VS Code\Code.exe', parameters: '"${filePath}"'}
useForOpen: true
waitUntilFinished: false
filePattern: '*'
- name: Open in IntelliJ IDEA
fileStarter: {command: 'C:\Program Files\JetBrains\IntelliJ IDEA\bin\idea64.exe',
parameters: '${filePath}'}
useForOpen: true
waitUntilFinished: false
filePattern: '*'
- name: Open in Rider
fileStarter: {command: 'C:\Users\pedoc\AppData\Local\JetBrains\Installations\Rider252\bin\rider64.exe',
parameters: '${filePath}'}
useForOpen: true
waitUntilFinished: false
filePattern: '*'
- name: Open in CLion
fileStarter: {command: 'C:\Program Files\JetBrains\CLion 2025.1.4\bin\clion64.exe',
parameters: '${filePath}'}
useForOpen: true
waitUntilFinished: false
filePattern: '*'
- name: Open in Visual Studio
fileStarter: {command: opendef.exe, parameters: '-d "${repositoryRootPath}" -e sln'}
useForOpen: false
waitUntilFinished: false
filePattern: '*'
- name: Open Developer Command Prompt for VS 2022
fileStarter: {command: cmd.exe, parameters: 'cmd /c start "VS Dev Cmd" /D "${filePath}"
cmd /k call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"'}
useForOpen: true
waitUntilFinished: false
filePattern: '*'
forFilesNotDirectories: false
- id: openInCmd
name: Open in cmd
fileStarter: {command: cmd.exe, parameters: '/c start pushd ${filePath}'}
useForOpen: true
waitUntilFinished: false
filePattern: '*'
forFilesNotDirectories: false
- id: revealInExplorer
name: Reveal in Explorer
fileStarter: {command: explorer.exe, parameters: '/select, ${filePath}'}
useForOpen: true
waitUntilFinished: false
filePattern: '*'
- id: editInNotepad
name: Edit
fileStarter: {command: notepad.exe, parameters: '${filePath}'}
useForOpen: true
waitUntilFinished: false
filePattern: '*'
forFilesNotDirectories: true
- id: openGitShell
name: Open Git-Shell
fileStarter: {command: '${gitDir}\git-bash.exe', parameters: '--cd=${filePath}'}
useForOpen: true
waitUntilFinished: false
filePattern: '*'
forFilesNotDirectories: false
- id: setExecutable
name: Set Executable Flag
fileStarter: {command: '${git}', parameters: 'update-index --chmod=+x -- ${filePath}'}
useForOpen: false
waitUntilFinished: true
filePattern: '*'
forFilesNotDirectories: true
- id: unsetExecutable
name: Unset Executable Flag
fileStarter: {command: '${git}', parameters: 'update-index --chmod=-x -- ${filePath}'}
useForOpen: false
waitUntilFinished: true
filePattern: '*'
forFilesNotDirectories: true
- name: Format Patch
fileStarter: {command: '${git}', parameters: 'format-patch -o ${dirSelect} ${commit}..${commit2}'}
useForOpen: false
waitUntilFinished: true
filePattern: '*'
forRefsNotShas: true
- name: Format Patch
fileStarter: {command: '${git}', parameters: 'format-patch -o ${dirSelect} -1 ${commit}'}
useForOpen: false
waitUntilFinished: true
filePattern: '*'
forRefsNotShas: true
- id: applyPatch
name: Apply Patch
fileStarter: {command: '${git}', parameters: 'apply ${fileOpen}'}
useForOpen: false
waitUntilFinished: true
filePattern: '*'
- id: verifyDatabase
name: Verify Database
fileStarter: {command: '${git}', parameters: fsck --full --no-progress}
useForOpen: false
waitUntilFinished: true
filePattern: '*'
- id: mergeDirectlyTo
name: Merge Directly To
fileStarter: {command: 'D:\Env\conda\Miniconda2\python.exe', parameters: '"${smartGitDir}\lib\git-forward-merge.sh"
${commit} ${commit2}'}
useForOpen: false
waitUntilFinished: true
filePattern: '*'
forRefsNotShas: true
requiresConfirmation: true
confirmationMessage: Do you want to merge changes to ${commit2} *without* checking
out?
- id: gitConfigList
name: Git Config
fileStarter: {command: '${git}', parameters: config --list --show-origin}
useForOpen: false
waitUntilFinished: true
filePattern: '*'
- id: openFile
name: Open File
fileStarter: {command: '${smartGitDir}\bin\open.exe', parameters: '${filePath}'}
useForOpen: true
waitUntilFinished: false
filePattern: '*'
forFilesNotDirectories: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment