- 
Make sure
codeexecutable is added to path. If notcmd+shift+pin code and runinstall 'CODE' command in PATH - 
Open Shortcuts
 - 
Create a new Quick Action
 - 
Set “Receive” to
files or folders - 
Add a
Run Shell Scriptaction- your default shell should already be selected, otherwise use 
/bin/zshfor macOS 10.15 (”Catalina”) or later - older versions of macOS use 
/bin/bash - if you're using something else, you probably know what to do 😉
 
 - your default shell should already be selected, otherwise use 
 - 
Set the script action to the following
code "$@" - 
Set “Pass input” to
as arguments - 
Save by closing the window
 
        
          
            Forked from idleberg/vscode-macos-context-menu.md
          
        
    
          Last active
          October 21, 2023 08:16 
        
      - 
      
 - 
        
Save anandbibek/8acdbd2919b6182372c5e68a546955fc to your computer and use it in GitHub Desktop.  
    “Open in Visual Studio Code” in macOS context-menu via "Shortcuts" app
  
        
      
      
  Author
  
  
      
          
      
      
            anandbibek
  
      
      
      commented 
        Oct 21, 2023 
      
    
  

  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment