简体   繁体   中英

How to create keyboard shortcut for an extension's function in Visual Studio Code?

I managed to install ftp-sync by Łukasz Wroński and I am trying to create a keyboard shortcut for the command "Ftp-sync: Sync current file to Remote".

Whatever I try, I get the following warning "Command 'Ftp-sync: Sync current file to Remote' not found".

So how can I create a keyboard shortcut to do this?

Thanks in advance!

I had to look in the "extension.js" file of the extension for the command (extension.ftpsyncsingle). After finding the appropriate command, I used it in creating the keyboard shortcut in File > Preferences > Keyboard Shortcuts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM