gpt4 book ai didi

windows - Windows Vista 上的 Sublime Text 2 文件关联

转载 作者:可可西里 更新时间:2023-11-01 11:59:14 25 4
gpt4 key购买 nike

我希望 .js、.css、.html 等文件与 Sublime Text 2 相关联。我尝试将文件类型与 Sublime Text 程序相关联,但“打开方式”对话框不允许我选择 sublime_text.exe .当我浏览到 sublime_text.exe 并单击“打开”时,(在 Program Files 下,而不是 Program Files x86 下;我安装了 ST 64 位版本)没有任何反应;浏览窗口关闭,我回到了愚蠢的“打开方式”对话框,但 sublime_text.exe 未被选中并且在可用程序列表中,并且“确定”按钮被禁用,因为我没有选择任何东西。

我敢肯定有人更熟悉 Windows 的内部工作方式,并且能够阐明可能出现的问题。

这一切都是从我安装 Sublime Text 2 正式版开始的。当时,我安装了 Sublime Text 2 32 位测试版,当我安装正式版时,我决定使用 64 位。安装新版本后,我的电脑上有两个版本,一个 32 位版本和一个 64 位版本。我所有的文件关联都使用 32 位版本,所以在我卸载旧的 32 位版本(使用 Revo Uninstaller)后,我所有的文件关联都坏了,然后我无法修复这种感觉。

非常感谢对此的任何帮助。

最佳答案

也许这会有所帮助 http://www.sublimetext.com/forum/viewtopic.php?f=2&t=1652&start=10#p7646

如果链接失效,这里是内容

This actually isn't a problem with Sublime text, it's a generic quirk introduced in Vista and left lingering in W7. I actually recently made a blog post about this very issue, you can find it at http://anders.tonfeldt.se/?p=775 but I'll detail it here since it's generally considered bad form to drop an url and leave.

  1. Open regedit.
  2. Navigate to HKEY_CLASSES_ROOT\Applications\sublime_text.exe\shell\open\command
  3. Verify that the path is accurate, correct it if it is not. Exit regedit.
  4. Open task manager via ctrl+alt+del, kill explorer.exe, go to run and type explorer.exe (or skip this step and simply reboot).
  5. Now attempt the same thing, right click a text file, open with, navigate to sublime, and it should now appear in the list of available applications.

Disclaimer; My post above uses another application as an example and it's not guaranteed to fix your problem, but it's likely to be the same as I've encountered it countless times when installing / uninstalling / reinstalling an application, or just updating one, in Win7/Vista.

TFeldt

关于windows - Windows Vista 上的 Sublime Text 2 文件关联,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12045208/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com