Configure external tools
Configure external tools in Unity Version Control configuration files.
阅读时间1 分钟最后更新于 10 个月前
Use the file to run actions from external tools on selected objects.
externaltools.confIf you configure actions, these actions appear in the submenu when you right-click and select Open in the following locations:
- Controlled and private items in the Workspace Explorer tab.
- The Pending Changes tab
- The History view (Windows only)
The actions also appear as a new context menu item, External tools, in the following locations:
- The Branches tab
- The Changesets tab
- The Labels tab
- The History side panel (only GTK and macOS)
Create the externaltools.conf
file
externaltools.confCreate the file in one of the following locations:
externaltools.conf- In the repository under
plastic-global-configso that all clients have the same settings by default./externaltools/externaltools.conf - In your client installation directory.
- In the directory:
plastic4- Windows: under
C:\Users\<em>user</em>\AppData\Local\plastic4 - Linux or macOS: under
$HOME/.plastic4
- Windows: under
Syntax
Use the following syntax for the file:
externaltools.conf<objectType>[:<objectType>[...]] | <toolName> | <actionToRun> | <args>
Parameters
Parameter | Description |
|---|---|
| The name of the target object. The object can be an item, label, changeset, or branch. To combine objects, use |
| The name of the tool you want the context menu to display. |
| The path or environment variable:
|
| The arguments line to pass to the target application. There are three supported placeholders:
|
externaltools.conf
file example
externaltools.confRefer to the following example of a valid file:
externaltools.confitem | Open with sublime | C:\Program Files\Sublime Text 3\subl.exe | "@object"label:changeset:branch | Create new code review... | /usr/bin/createcodereview | "@object@@repository" @wkpathitem | Preview with PhotoScape | %PHOTOSCAPE_PATH% | "@object"