VScode connects to the server to run the code

My pycharm is expired. You can only use VScode. Let’s talk about how to use VScode to connect to the server.
Insert image description here

  1. InstallRemote SSHplugin.
    Insert image description here

  2. Settings → Search ssh → Check this
    Insert image description here

  3. Create a new connection here
    Insert image description here
    will ask you to enter. You need to enter username@地址+端口. After entering this, open this config and you can see what you just entered. information, save it after making sure it is correct.
    Insert image description here
    Insert image description here

  4. Click this link in the lower left corner

    Insert image description here

    Then select connect to host

    Insert image description here

  5. He will ask you to enter the password for the server just now. Entering is OK.

    Insert image description here

  6. Now you can directly open the project on the server
    Insert image description here

Guess you like

Origin blog.csdn.net/qq_36667170/article/details/132566983
Recommended