Paste Path As从系统剪贴板读取文本,在 VS Code 编辑器中选择路径格式后粘贴。适用于 Windows VS Code 1.85.0 及以上版本。 安装与使用
支持替换选区和多个光标;每个选区粘贴相同的完整文本。一次撤销可恢复此次粘贴。普通 Ctrl+V 保持原有行为。如果快捷键与其他扩展冲突,可在键盘快捷方式中搜索 转换规则
开发与打包源代码为 JavaScript,无需编译。安装 Node.js 后运行:
打包命令使用 Microsoft 的 发布者: EnglishPaste clipboard text using one of three path formats: original Windows paths, doubled backslashes, or forward slashes. Requires VS Code 1.85.0 or later. Copy a path, focus a text editor, and press Ctrl+Alt+V (macOS: Cmd+Alt+V). You can also use Paste Path As... from the editor context menu or Command Palette. Choose a format and press Enter; press Escape to cancel. The command inserts at the cursor or replaces selected text. Multiple cursors receive the same complete clipboard text, and one Undo restores the edit. Quotes and whitespace are preserved. Escaping doubles every backslash; it does not perform complete C or JSON string serialization. Clipboard contents are not modified. No network access or additional runtime dependencies. Clipboard text is read only when you run the command. |