Introduction:
Visual Studio Code (VS Code) is a popular and powerful code editor used by developers around the world. To enhance productivity, it allows users to create custom keyboard shortcuts for various tasks. In this blog post, we will guide you through the process of creating shortcuts to open files or folders directly from the macOS Finder into Visual Studio Code. This will save you time and streamline your development workflow.
However, If you want to create a shortcut to open a file or folder on vs code in mac os that time you have to need follow some step. All step are given below:
Step-1: At first open the automator.
Step-2: Now select quick option and click on choose button.
Step-3: After that you have to select "file or folder" folder option from "Workflow receives current" and then click on "in" and choose "Finder".
Step-4: Now focus on left side search option and search "Run shell script" and drag and drop this at right side where are a black option written "Drag actions or file to build your workflow"
Step-5: You have to need a command which will be set on shell command.
command-- open -n -b "com.microsoft.VSCode" --args "$*"
After set this command then save this.
Note: After complete all step then go to "Finder" and select a file or folder and press the right side of your mouse then open some option and then you click on "Quick Action". When you click this option you will show a your shortcut option.

0 Comments