Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>NewSftpNew to Visual Studio Code? Get it now.
NewSftp

NewSftp

Sftp_new_extension

|
1 install
| (0) | Free
VSCode-SFTP enables you to add, edit or delete files within a local directory and have it sync to a remote server directory using different transfer protocols like FTP or SSH. The most basic setup requires only a few lines of configuration with a wide array of specific settings also available to mee
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

NewSftp 测试扩展

用于打包发布测试的简易 VS Code 扩展,提供几条常用演示命令和一个状态栏按钮。

功能

  • 新增命令:
    • NewSftp: Hello World(newsftp.helloWorld):弹出问候语。
    • NewSftp: 显示当前文件信息(newsftp.showFileInfo):显示语言、行数、路径。
    • NewSftp: 新建临时文件(newsftp.createScratch):打开只在内存中的临时文件。
    • NewSftp: 输入文本并插入光标处(newsftp.promptAndInsert)。
    • NewSftp: 切换状态栏按钮(newsftp.toggleStatusBar)。
  • 状态栏按钮:显示在左侧,点击触发 Hello World。

快捷键

  • 显示当前文件信息:Cmd+Alt+I
  • 新建临时文件:Cmd+Alt+N

配置

  • newsftp.statusBarText:状态栏按钮文字,默认 $(beaker) Test Ready。
  • newsftp.greeting:Hello World 的问候语,默认 Hello from NewSftp。

开发与运行

  1. 安装依赖并编译:
    • npm i
    • npm run compile
  2. 在 VS Code 中使用“运行与调试”启动扩展宿主进行调试。

打包

  1. 安装 vsce:npm i -g @vscode/vsce 或使用本地脚本 npx vsce package。
  2. 运行 npm run vsix 生成 .vsix。如需发布,配置 publisher 并运行 npm run publish。
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft