- Open Automator
- Quick Action
- Set “Service receives selected” to
files or folders
inany application
- Add a
Run Shell Script
action - Set the script action to the following
for f in "$@"; do
open -a 'Visual Studio Code' "$@"
# ignore everything in the root except the "wp-content" directory. | |
/* | |
!wp-content/ | |
# ignore everything in the "wp-content" directory, except: | |
# mu-plugins, plugins, and themes directories | |
wp-content/* | |
!wp-content/mu-plugins/ | |
!wp-content/plugins/ | |
!wp-content/themes/ |