Perforce changing the default editor

前端 未结 6 1098
轮回少年
轮回少年 2021-02-20 14:20

I use perforce for my revision control, when I hit \'p4 change\' it always opens up the list on emacs, and we all know the pain of deleting text in it. How do i change it to ged

6条回答
  •  难免孤独
    2021-02-20 14:36

    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 !!!

提交回复
热议问题