Sublime as default editor

前端 未结 11 1999
误落风尘
误落风尘 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条回答
  •  闹比i
    闹比i (楼主)
    2021-01-29 19:04

    I tried all options to make sublime text 3 as the default program for my .php, .css and/or .js files I don't exactly know why it all failed, I think it is related to windows 10 current version bug

    But the good news is there is some working way for me, also for those who love CMD

    1. open CMD as administrator
    2. run this line: FTYPE sublime="C:\Program Files\Sublime Text 3\sublime_text.exe" "%1"
    3. for .php files use this command: ASSOC .php=sublime for js use this: ASSOC .js=sublime and so on...

提交回复
热议问题