This is just a small AppleScript application that you can add to your Finder toolbar to quickly launch your Visual Studio Code over the current Folder or file.
- To create your application, create new project in Automator
- Paste the code in the
open_in_vs_code.scpt
in your Automator project - Save your project as an Application
- Move your new Application file to your Applications folder
- Command+Drag the Application file to your Finder toolbar, a new button for the app will be created in your Finder toolbar
- Go to the Folder you want to open in the editor and press the button from the Finder toolbar, the editor should appear displaying the contents of the folder
- If you select a specific File or Files, the Editor will display the selection only