SourceTree Custom Action - Open VS Code at Repo or File Location
source link: https://gist.github.com/DizWARE/48fa1081b1d1ea14ea2c2803031f199b
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Open VS Code at Repo or File Location · GitHub
Instantly share code, notes, and snippets.
@DizWARE When I use this, it does open the Visual Studio Code editor with the file, but it leaves a progress bar open in Source Tree, do I have some sort of setting wrong where I set this up, or does this happen to you as well?
@dmoore1181 I get the same thing as well.
Author
@DizWARE When I use this, it does open the Visual Studio Code editor with the file, but it leaves a progress bar open in Source Tree, do I have some sort of setting wrong where I set this up, or does this happen to you as well?
@dmoore1181 I've tried to figure this out but I haven't had luck either. Sourcetree is waiting for some finish response back from the command, but booting up vscode never provides that feedback, even if you close the window. I'm sure there is a way, but it goes into a little more batch or ps scripting then I was willing to do.
This is what works for me.
Go to tools>options>custom actions
Menu Caption: Open with Visual Studio Code
Check Run Command Silently
Script to Run: Put Your full installation path to VSCode)/Code.exe
Parameters: $REPO
thanks AliF50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK