Perforce changing the default editor

廉价感情. 提交于 2019-12-04 03:48:22

On the command line, set P4EDITOR either as an environment variable or in the P4CONFIG file.

From the command line,

p4 set P4EDITOR="C:\File Editor\editor.exe"

You can test that this was successfull by running the following command after, which should launch your desired editor.

p4 workspace

user3571625

I had similar problem on my Windows system.
It always used to open clumsy notepad. I am more comfortable with TextPad, so to change default perforce editor, I made following changes: I opened System Properties and added new environment variable as following:

Name: `P4EDITOR` 
Value: `C:\Program Files (x86)\TextPad 4\TextPad.exe`

After that open a new CMD and there you go !!!

For Notepad++ I needed to use this command -multiInst to trigger edits.

p4 set P4EDITOR="C:\Program Files (x86)\Notepad++\notepad++.exe -multiInst"

Try setting the EDITOR environment variable. Also, the command line p4 should have an option to specify an editor. Also, the .p4config file might have something as well.

Also need to check if EDITOR/P4EDITOR path is correct. If path is wrong, perforce will choose previously working editor.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!