Open With VSCode ---- on the Mac right-click menu to open the Settings folder operations by Visual Studio Code

1, Launchpad (small rocket) click on the Dock (docking procedure), as shown:

2, click the other , as shown:

3, click automatic operation (small robot) , as shown:

4, new document or click + n-cmd , as shown:

5-point service, click to select , as shown:

6, in the left panel, select "Utilities"; and then find the "Run Shell Script", it dragged on the right side panel;

The right of the "service" to receive the selected folder selection, location Finder (up visit); "Run Shell Script" panel, select Shell "/ bin / bash", pass input "as an argument," then modify Shell scripts as:

Copy the following contents:

for f in "$@"

do

    open -a "Visual Studio Code" "$f"

done

7, then, saved cmd + s, VSCode With saved as the Open , as shown:

8, select any folder, right-click on "Services", you can see the "Open With VSCode" menu on your computer , as shown:

 

 

 

 

 

 

 

 

Guess you like

Origin blog.csdn.net/u013069892/article/details/83147239