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. 用 #if 0 包围代码(1.0.1)选择 C / C++ 等支持预处理指令的代码,按 Ctrl+Alt+0(macOS:Cmd+Alt+0),或右键选择 Wrap Selection with #if 0。
自动扩展到选中代码所在的完整行,以保证指令独占一行;选区在下一行行首结束时不包含该行。保留代码缩进和文档换行格式。多选区重叠或相邻时合并,分离选区分别包围,一次撤销即可恢复。没有选区时不执行。此命令仅添加包围,不切换或删除已有指令;选区应包含完整、配对的预处理结构。快捷键冲突时可在键盘快捷方式中修改。 Select code and press Ctrl+Alt+0 to wrap its complete lines with |