# Visual Studio Code Extension - Compare Text **Repository Path**: atalent/vscode-extension-compare-text ## Basic Information - **Project Name**: Visual Studio Code Extension - Compare Text - **Description**: vscode-extension-compare-text - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-10-12 - **Last Updated**: 2026-10-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Compare Text / 比较文本 在编辑器(文件窗口)中单击右键,选择「选择文件比较文本」,在弹出的对话框中选中另一个文件,即可使用 VSCode 内置的差异比较视图进行文本比较。菜单与提示会跟随 VSCode 界面语言:中文环境显示中文,其他环境显示英文。 Right-click inside an editor (file window) and choose **Select File to Compare Text** (`选择文件比较文本`), then pick another file in the dialog. VSCode's built-in diff view opens to compare the two texts. Menu items and messages follow the VSCode display language — Chinese in a Chinese environment, English otherwise. ## Usage / 使用说明 ![输入图片说明](https://gitee.com/atalent/vscode-extension-compare-text/raw/master/preview.png) 1. 用 VSCode 打开一个文本文件。 / Open a text file in VSCode. 2. 在该文件窗口单击右键,选择「选择文件比较文本」。 / Right-click in that file window and choose **Select File to Compare Text**. 3. 在弹出的文件选择框中选中要比较的另一个文件。 / In the file picker, select the other file to compare against. 4. 随后会打开差异比较视图,左侧为当前文件,右侧为所选文件。 / A diff view opens with the current file on the left and the selected file on the right. ## Build / Debug / 调试与打包 用 VSCode 打开文件夹,按 F5 调试。打包命令:`vsce package`(生成 `.vsix`)。 Open the folder in VSCode and press F5 to debug. Package with `vsce package` (produces a `.vsix`). ## Publish / 发布 首次发布前需注册 publisher 并登录。 / Before first publish: register a publisher and log in. 1. 在 https://marketplace.visualstudio.com/manage 创建 publisher,记下 ``。 / Create a publisher at https://marketplace.visualstudio.com/manage and note ``. 2. 在 https://dev.azure.com 创建 Personal Access Token(Organization 选 `All accessible organizations`,Scopes 勾选 `Marketplace > Manage`)。 / Create a Personal Access Token at https://dev.azure.com (Organization: `All accessible organizations`, Scopes: `Marketplace > Manage`). 3. 执行 `vsce login ` 并粘贴 Token。 / Run `vsce login ` and paste the token. 之后发布到 Marketplace: / Then publish to the Marketplace: ``` vsce publish ``` 其他:用 `vsce publish --packagePath xxx.vsix` 上传已打好的包;用 `vsce publish minor|major|patch` 升级版本号。 / Other: `vsce publish --packagePath xxx.vsix` to upload an existing package; `vsce publish minor|major|patch` to bump the version.