我如何使用Dropbox同步我的卓越文本3设置?

时间:2022-03-21 20:53:56

I would like to sync Sublime Text 3's Settings across multiple machines using Dropbox.

我想要在多台机器上使用Dropbox同步卓越的文本3的设置。

How should I set this up?

我该怎么设置这个?

3 个解决方案

#1


70  

I've been syncing my Sublime settings for a while between multiple locations, all running OS X. I've had some minor problems. Finally, I decided to look into it which led me to what I would consider the authoritative description of how to sync Sublime setting between multiple machines using Dropbox:

我已经在多个地点之间同步了我的崇高设置,所有运行的OS x。我有一些小问题。最后,我决定研究一下,这让我想到了一个关于如何在多台机器之间同步卓越设置的权威描述:

Sublime Package Control > Docs > Syncing
https://sublime.wbond.net/docs/syncing

卓越的软件包控制>文档>同步https://sublime.wbond.net/docs/syncing。

Here is the basic summary:

下面是基本的总结:

To properly sync your installed packages across different machines, you actually do not want to sync the whole Packages/ and Installed Packages/ folders. The reason for this is that some packages have different versions for different operating systems. By syncing the actual package contents across operating systems, you will possibly run into broken packages.

要正确地在不同的机器上同步安装的包,实际上不需要同步整个包/并安装包/文件夹。原因是有些包对于不同的操作系统有不同的版本。通过在操作系统中同步实际的包内容,您可能会遇到坏包。

The proper solution is to:

正确的解决办法是:

  1. Install Package Control on all machines
  2. 在所有机器上安装包控制。
  3. Then to sync only the Packages/User/ folder.
  4. 然后只同步包/用户/文件夹。

This folder contains the Package Control.sublime-settings file, which includes a list of all installed packages. If this file is copied to another machine, the next time Sublime Text is started, Package Control will install the correct version of any missing packages.

此文件夹包含包控件。sublime-settings文件,其中包含所有已安装包的列表。如果该文件被复制到另一台机器上,那么下一段时间,就会启动该文件,包控件将安装任何丢失的包的正确版本。

To sync the folder, you generally move Packages/User/ into your Dropbox and create a symlink to it from Sublime Text 3/Packages/. Detailed instructions for various operating systems are provided via the link above.

为了同步这个文件夹,你通常会移动包/用户/到你的Dropbox中,并从卓越的文本3/包中创建一个符号链接。各种操作系统的详细说明通过上面的链接提供。

#2


17  

IMPORTANT: My answer is not correct. Tomek's answer is better

重点:我的回答不正确。Tomek的回答更好

Before you start, close Sublime Text 3

在开始之前,请关闭崇高的文本3。

  1. Create a folder in Dropbox called Sublime Text 3

    在Dropbox中创建一个名为Sublime Text 3的文件夹。

  2. Move the following two folders to this folder.

    将下面两个文件夹移到这个文件夹中。

    ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
    
    ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages
    
  3. Create symlinks from their original location to their new locations in Dropbox:

    从他们的原始位置创建符号链接到他们在Dropbox的新位置:

    $ ln -s ~/Dropbox/App\ Settings/Sublime\ Text\ 3/Installed Packages ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages
    
    $ ln -s ~/Dropbox/App\ Settings/Sublime\ Text\ 3/Packages ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
    
  4. Open Sublime Text 3

    打开的文本3

#3


5  

For Linux users using Dropbox

对于使用Dropbox的Linux用户来说。


The following is an excerpt taken directly from Sublime Text Package Control DOCS Syncing:

下面是一段摘录,直接取自于崇高的文本包控制文档同步:

The proper solution is to install Package Control on all machines and then to sync only the Packages/User/ folder. This folder contains the Package Control.sublime-settings file, which includes a list of all installed packages. If this file is copied to another machine, the next time Sublime Text is started, Package Control will install the correct version of any missing packages.

正确的解决方案是在所有机器上安装包控制,然后只同步包/用户/文件夹。此文件夹包含包控件。sublime-settings文件,其中包含所有已安装包的列表。如果该文件被复制到另一台机器上,那么下一段时间,就会启动该文件,包控件将安装任何丢失的包的正确版本。

This also sync your preferences.sublime-settings and your macros! Exactly what I wanted for Christmas.

这也同步您的首选项。sublime-settings和宏!正是我想要的圣诞礼物。


Instructions:

产品说明:

If your Dropbox folder is not in the default location, you'll need to change ~/Dropbox to your location.

如果你的Dropbox文件夹没有在默认的位置,你需要将~/Dropbox改变到你的位置。

1) Close Sublime Text ( Very important! )
2) Open Terminal

1)关闭崇高的文本(非常重要!)2)打开终端

Obs: for Sublime Text 2 just change 3 by 2

Obs:对于崇高的文本2只是改变3×2。

First Machine

第一次机

On your first machine, use the following instructions.

在您的第一台机器上,使用以下指令。

cd ~/.config/sublime-text-3/Packages/
mkdir ~/Dropbox/Sublime
mv User ~/Dropbox/Sublime/
ln -s ~/Dropbox/Sublime/User

Other Machine(s)

其他机器(年代)

On your other machine(s), use the following instructions. These instructions will remove your User/ folder and all contents!

在另一台机器上,使用以下指令。这些指令将删除你的用户/文件夹和所有内容!

cd ~/.config/sublime-text-3/Packages/
rm -r User
ln -s ~/Dropbox/Sublime/User

ref: https://packagecontrol.io/docs/syncing#dropbox-linux

裁判:https://packagecontrol.io/docs/syncing # dropbox-linux

#1


70  

I've been syncing my Sublime settings for a while between multiple locations, all running OS X. I've had some minor problems. Finally, I decided to look into it which led me to what I would consider the authoritative description of how to sync Sublime setting between multiple machines using Dropbox:

我已经在多个地点之间同步了我的崇高设置,所有运行的OS x。我有一些小问题。最后,我决定研究一下,这让我想到了一个关于如何在多台机器之间同步卓越设置的权威描述:

Sublime Package Control > Docs > Syncing
https://sublime.wbond.net/docs/syncing

卓越的软件包控制>文档>同步https://sublime.wbond.net/docs/syncing。

Here is the basic summary:

下面是基本的总结:

To properly sync your installed packages across different machines, you actually do not want to sync the whole Packages/ and Installed Packages/ folders. The reason for this is that some packages have different versions for different operating systems. By syncing the actual package contents across operating systems, you will possibly run into broken packages.

要正确地在不同的机器上同步安装的包,实际上不需要同步整个包/并安装包/文件夹。原因是有些包对于不同的操作系统有不同的版本。通过在操作系统中同步实际的包内容,您可能会遇到坏包。

The proper solution is to:

正确的解决办法是:

  1. Install Package Control on all machines
  2. 在所有机器上安装包控制。
  3. Then to sync only the Packages/User/ folder.
  4. 然后只同步包/用户/文件夹。

This folder contains the Package Control.sublime-settings file, which includes a list of all installed packages. If this file is copied to another machine, the next time Sublime Text is started, Package Control will install the correct version of any missing packages.

此文件夹包含包控件。sublime-settings文件,其中包含所有已安装包的列表。如果该文件被复制到另一台机器上,那么下一段时间,就会启动该文件,包控件将安装任何丢失的包的正确版本。

To sync the folder, you generally move Packages/User/ into your Dropbox and create a symlink to it from Sublime Text 3/Packages/. Detailed instructions for various operating systems are provided via the link above.

为了同步这个文件夹,你通常会移动包/用户/到你的Dropbox中,并从卓越的文本3/包中创建一个符号链接。各种操作系统的详细说明通过上面的链接提供。

#2


17  

IMPORTANT: My answer is not correct. Tomek's answer is better

重点:我的回答不正确。Tomek的回答更好

Before you start, close Sublime Text 3

在开始之前,请关闭崇高的文本3。

  1. Create a folder in Dropbox called Sublime Text 3

    在Dropbox中创建一个名为Sublime Text 3的文件夹。

  2. Move the following two folders to this folder.

    将下面两个文件夹移到这个文件夹中。

    ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
    
    ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages
    
  3. Create symlinks from their original location to their new locations in Dropbox:

    从他们的原始位置创建符号链接到他们在Dropbox的新位置:

    $ ln -s ~/Dropbox/App\ Settings/Sublime\ Text\ 3/Installed Packages ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages
    
    $ ln -s ~/Dropbox/App\ Settings/Sublime\ Text\ 3/Packages ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
    
  4. Open Sublime Text 3

    打开的文本3

#3


5  

For Linux users using Dropbox

对于使用Dropbox的Linux用户来说。


The following is an excerpt taken directly from Sublime Text Package Control DOCS Syncing:

下面是一段摘录,直接取自于崇高的文本包控制文档同步:

The proper solution is to install Package Control on all machines and then to sync only the Packages/User/ folder. This folder contains the Package Control.sublime-settings file, which includes a list of all installed packages. If this file is copied to another machine, the next time Sublime Text is started, Package Control will install the correct version of any missing packages.

正确的解决方案是在所有机器上安装包控制,然后只同步包/用户/文件夹。此文件夹包含包控件。sublime-settings文件,其中包含所有已安装包的列表。如果该文件被复制到另一台机器上,那么下一段时间,就会启动该文件,包控件将安装任何丢失的包的正确版本。

This also sync your preferences.sublime-settings and your macros! Exactly what I wanted for Christmas.

这也同步您的首选项。sublime-settings和宏!正是我想要的圣诞礼物。


Instructions:

产品说明:

If your Dropbox folder is not in the default location, you'll need to change ~/Dropbox to your location.

如果你的Dropbox文件夹没有在默认的位置,你需要将~/Dropbox改变到你的位置。

1) Close Sublime Text ( Very important! )
2) Open Terminal

1)关闭崇高的文本(非常重要!)2)打开终端

Obs: for Sublime Text 2 just change 3 by 2

Obs:对于崇高的文本2只是改变3×2。

First Machine

第一次机

On your first machine, use the following instructions.

在您的第一台机器上,使用以下指令。

cd ~/.config/sublime-text-3/Packages/
mkdir ~/Dropbox/Sublime
mv User ~/Dropbox/Sublime/
ln -s ~/Dropbox/Sublime/User

Other Machine(s)

其他机器(年代)

On your other machine(s), use the following instructions. These instructions will remove your User/ folder and all contents!

在另一台机器上,使用以下指令。这些指令将删除你的用户/文件夹和所有内容!

cd ~/.config/sublime-text-3/Packages/
rm -r User
ln -s ~/Dropbox/Sublime/User

ref: https://packagecontrol.io/docs/syncing#dropbox-linux

裁判:https://packagecontrol.io/docs/syncing # dropbox-linux