Need help with open-folder-with-vs-code?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

hamxiaoz
132 Stars 9 Forks 9 Commits 3 Opened issues

Description

A Finder toolbar icon to open current selected file/folder with Visual Studio Code

Services available

!
?

Need anything else?

Contributors list

# 508,400
HTML
CSS
9 commits

open-folder-with-vs-code

A Finder toolbar icon to open current selected file/folder with VS Code.

How to use?

How to create the app manually?

Open AppleScript Editor, copy the following source and export as Application.

(*
 Open in VS Code
 To use:
  * Drag Open In VS Code to the toolbar of any finder
  window to add it to the toolbar
*)

on run tell application "Finder" if selection is {} then set finderSelection to folder of the front window as string else set finderSelection to selection as alias list end if end tell

subl(finderSelection)

end run

-- script was drag-and-dropped onto on open (theList) subl(theList) end open

-- open in Visual Studio Code on subl(listOfAliases) tell application "Visual Studio Code" activate open listOfAliases end tell end subl

Looking the same thing for Sublime?

Please see this repo open-folder-with-sublime

Credits

Thanks for the following github users for feedback & suggestion:

For icons, you can find them here: - https://icons8.com/icons/set/visual-studio-code

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.