Sublime as default editor

前端 未结 11 2012
误落风尘
误落风尘 2021-01-29 18:05

Is there a way to set Sublime Text as the default text editor for file formats on Windows 7?

Also, if anyone knew a Sublime Text Tutorial or Wiki that would be really he

11条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-29 18:45

    1: You can also set your associations in Control Panel:

    Control Panel > Default Programs > Associate a file or protocol with a specific program:

    enter image description here

    2: Or, call it from code via IApplicationAssociationRegistrationUI::LaunchAdvancedAssociationUI ;)

    HRESULT LaunchAdvancedAssociationUI(
       [in]  LPCWSTR pszAppRegName
    );
    

提交回复
热议问题