Perforce integration for Visual Studio Code
add
- Open a new file to add it to the depotedit
- Open an existing file for editrevert
- Discard changes from an opened filediff
- Display diff of client file with depot filediff revision
- Display diff of client file with depot file at a specific revisioninfo
- Display client/server informationlogin
,logout
- Login operations
Name | Type | Description |
---|---|---|
perforce.editOnFileSave |
boolean |
Automatically open a file for edit when saved |
perforce.editOnFileModified |
boolean |
Automatically open a file for edit when Modified |
perforce.addOnFileCreate |
boolean |
Automatically Add a file to depot when Created |
perforce.deleteOnFileDelete |
boolean |
Automatically delete a file from depot when deleted |
perforce.command |
string |
Configure a path to p4 or an alternate command if needed |
perforce.compatibilityMode |
string |
Specify if we should run in compatibility mode, currently support perforce and sourcedepot |
perforce.maxBuffer |
number |
Specify the largest amount of data allowed for commands, including file comparison. Default is 204800 (200KB) |
perforce.realpath |
boolean |
Experimental Try to resolve real file path before executing command |
Visual Studio Code now allow to choose which Source Control Manager to use.
- You can find
Switch SCM Provider
in the command palette, or in the Source Control section menu - Use the input box to create new changelists
- Right-click on file and changelist for more commands
Keep in mind this is still in early beta! Explore and leave your comments on GitHub
- Install Visual Studio Code (1.11.1 or higher)
- Launch Code
- From the command palette
ctrl+shift+p
(Windows, Linux) orcmd+shift+p
(OS X) - Select
Install Extensions
- Choose the extension
Perforce for VS Code
- Reload Visual Studio Code
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Visual Studio Code v1.11.1