在Windows 10上将Sublime Text 3设置为默认的.txt编辑器

时间:2018-10-28 19:12:20

标签: windows windows-10 command-line-interface sublimetext3

如何在Windows 10上将Sublime Text 3设置为默认的.txt编辑器?

这是我尝试过的:

1以管理员身份打开let news = try JSONDecoder().decode(JsonFromWeb.self, from:ata!) DispatchQueue.main.async { self.arradata = news.News self.tableview.reloadData() } 。 2类型:cmd.exe

ASSOC .txt=D:\Installations\Sublime\Sublime Text 3\sublime_text.exe

但是在那之后,当我转到任何.txt文件并打开它时,它仍然使用默认的Windows记事本打开。我在这里想念什么?谢谢。

此处尝试按照答案中的说明更改默认打开的应用程序

[![enter image description here][1]][1]
[![enter image description here][2]][2]

您会看到[![enter image description here][3]][3] [![enter image description here][4]][4] [![enter image description here][5]][5] [![enter image description here][6]][6] 文件继续使用默认的Windows记事本打开。

.txt

1 个答案:

答案 0 :(得分:1)

如果您正在谈论.txt文件,只需右键单击一个文件,依次选择“打开方式”,“选择其他应用程序”,在列表中选择Sublime Text,然后选中“始终使用此应用程序打开.txt”文件”。如果您没有看到Sublime Text,请在列表底部,单击“在此PC上查找其他应用”,然后浏览Sublime Text可执行文件,该文件应为:

C:\ Program Files \ Sublime Text 3 \ sublime_text.exe

参考:https://forums.malwarebytes.com/topic/201012-set-default-text-editor/

好的,这是一种解决方法: 创建一个虚拟文件,其扩展名希望默认为程序。该文件可以为空。 右键单击虚拟文件,然后选择属性。 在“常规”选项卡上,有一个部分指出: 档案类型: 用打开,然后显示一个按钮。 单击更改。 从现在开始您要如何打开文件?选择。 滚动到底部并选择 转到C:\ Program Files \ Sublime Text 3 \ sublime_text.exe,然后选择 关闭属性,然后完成!

相关问题