OSX: how to add a right click option to a folder which opens the folder with an app like VS Code?
You can do this with an Automator Service.

Create the Service:


Open Automator and select Service or File > New > Service If Automator is already open.
Set Service receives selected to files or folders and in to Finder.
Add a Run Shell Script Action, setting Shell: to /bin/bash and Pass input: to as arguments and add the following code:




for f in "$@"; do
    open -a 'Visual Studio Code' "$f"
done





Save the Service as Open in Visual Studio Code.





Close Automator.


You can now select Files and or Folders in Finder and then control-click (right-click) on them and select Open in Visual Studio Code from the Services Context Menu.

Note: I tested this with Visual Studio Code but not with Brackets as I don't have it installed. However you should be able to create one for it too in the same manner while substituting the application's name in the open command.