IDE添加右键菜单

适用场景

IDE在安装的时时候可以选择添加右键菜单,如果忘记选了可以选择重新安装,也可以修改注册表文件添加右键菜单。

  • 1 新家一个以 .reg 为后缀的文件
  • 2将下面代码拷贝到文件里面
        Windows Registry Editor Version 5.00
        
        [HKEY_CLASSES_ROOT\*\shell\Goland]
        @="Open with GoLand"
        "Icon"="D:\\Program Files\\JetBrains\\GoLand 2020.2.2\\bin\\goland64.exe"
        
        [HKEY_CLASSES_ROOT\*\shell\Goland\command]
        @="\"D:\\Program Files\\JetBrains\\GoLand 2020.2.2\\bin\\goland64.exe\" \"%1\""
        
        Windows Registry Editor Version 5.00
        
        [HKEY_CLASSES_ROOT\Directory\shell\Goland]
        @="Open with GoLand"
        "Icon"="D:\\Program Files\\JetBrains\\GoLand 2020.2.2\\bin\\goland64.exe"
        
        [HKEY_CLASSES_ROOT\Directory\shell\Goland\command]
        @="\"D:\\Program Files\\JetBrains\\GoLand 2020.2.2\\bin\\goland64.exe\" \"%V\""
        
        Windows Registry Editor Version 5.00
        
        [HKEY_CLASSES_ROOT\Directory\Background\shell\Goland]
        @="Open with GoLand"
        "Icon"="D:\\Program Files\\JetBrains\\GoLand 2020.2.2\\bin\\goland64.exe"
        
        [HKEY_CLASSES_ROOT\Directory\Background\shell\Goland\command]
        @="\"D:\\Program Files\\JetBrains\\GoLand 2020.2.2\\bin\\goland64.exe\" \"%V\""
  • 3点击文件执行
  • 4效果
    image

image

posted @ 2022-01-05 17:17  不要摇头晃脑  阅读(122)  评论(0)    收藏  举报