Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>JNG-P4扩展New to Visual Studio Code? Get it now.
JNG-P4扩展

JNG-P4扩展

JNG中台

|
2,790 installs
| (1) | Free
P4插件 for Code - 让P4操作更便捷!
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode P4插件

Visual Studio Code P4插件 - 让P4操作更便捷!

如果安装本插件,需要卸载其他P4的插件,因为可能会有冲突。

如果你是第一次使用,请完整阅读本文档,了解插件。

更多疑问或者bug反馈,请联系值班。

插件做了什么?

目前是从 <mjcrouch.perforce> fork出来的一个版本,做了一些修改,大部分原插件的功能保留。

登录P4并使用

Login Example 主题: Night Owl - 字体: JetBrains Mono

编辑文件后自动执行P4的open、add、delete、move

  • 详见设置:perforce.editOnFileSave, perforce.addOnFileCreate, perforce.deleteOnFileDelete, perforce.moveOnFileRename

像GIt一样,扩展VS Code的SCM View

  • 直接管理自己的changelist
  • 提交和revert changelists
  • 修改changelists
  • 查看Diff

SCM Provider Example

在单个文件上跑一些P4命令

点击左下角P4按钮,然后选择命令。

  • add - Open a new file to add it to the depot
  • edit - Open an existing file for edit
  • revert - Discard changes from an opened file
  • diff - Display diff of client file with depot file
  • diff revision - Display diff of client file with depot file at a specific revision
  • login, logout - Login operations
  • ... and more!

Status Bar Example

更多完善的diff查看

Diff example

更多功能

见原插件文档

安装

扩展中搜索JNG-P4扩展,安装后重启编辑器。

或 查看扩展商店

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft