如何还原Sublime Text设置和首选项并撤消在Dropbox中创建的符号链接? [英] How to restore Sublime Text settings and preferences and undo the symlink created in Dropbox?

查看:107
本文介绍了如何还原Sublime Text设置和首选项并撤消在Dropbox中创建的符号链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何恢复Sublime Text设置和首选项并撤消在Dropbox中创建的符号链接?在Dropbox中创建符号链接后,我无法在计算机上访问Sublime Text 2首选项.

How can I restore Sublime Text settings and preferences and undo the symlink created in Dropbox? I cannot access the Sublime Text 2 preferences on my machine after creating a symlink in Dropbox.

这些是我在主计算机上运行的命令:

These are the commands I ran on my primary machine:

cd ~/Dropbox
ln -s ~/'Library/Application Support/Sublime Text 2' sublime-text-2-settings

这些在Dropbox根目录中创建了"sublime-text-2-settings".

These created "sublime-text-2-settings" in the Dropbox root directory.

然后在第二台计算机上,运行以下命令:

Then on a second machine, I ran the following commands:

cd ~/Library/Application\ Support/Sublime\ Text\2/
rm -R Packages
ln -s ~/Dropbox/sublime-text-2-settings Packages

这来自:现在,两台计算机上的Sublime Text 2都以全黑和全白两种颜色呈现,黑边栏也是如此,因此无法查看文件.另外,我无法访问两台计算机上的首选项,因此无法继续前进.

Now, Sublime Text 2 on both machines is being rendered in a total black and white color scheme, the black sidebar too, so it's impossible to view files. Also, I cannot access the Preferences on either machine making it impossible to move forward.

  • 如何撤消符号链接?
  • 如何在主计算机上访问首选项?

我花了几个小时自定义首选项"并添加了程序包,但我讨厌将其全部删除.

I spent hours customizing Preferences and adding packages and I would hate to loose it all.

推荐答案

暂时解决(蛮力解决).

Resolved for now (by brute force).

  1. 取消链接符号链接(在两台机器上取消链接/path/to/sym/link)
  2. 复制+粘贴-主计算机上〜/'Library/Application Support/Sublime Text 2'sublime-text-2-settings中的Packages文件夹.
  3. 在辅助计算机上重新安装Sublime Text.
  4. 在两台计算机上重新启动Sublime.

Aaand,又回来了!

Aaand, back in action!

尽管#3和#4不必按特定顺序排列.似乎主要的问题是Packages文件夹已在主计算机上移动,并被第二台计算机上的符号链接完全取代.该符号链接也缺少Packages文件夹,因为它在创建符号链接之前已在主机上移动.

Though #3 and #4 didn't have to be in that particular order. It seems that the main problem was that the Packages folder got moved on the primary machine and were completely replaced by the symbolic link on the second machine. The symbolic link was also missing the Packages folder since it had moved on the primary machine before the symbolic link was created.

这篇关于如何还原Sublime Text设置和首选项并撤消在Dropbox中创建的符号链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆