简体   繁体   English

无法手动将新程序包添加到Sublime Text 3

[英]Unable to Manually Add New Packages to Sublime Text 3

I'm new to using Ubuntu. 我是使用Ubuntu的新手。 I installed Sublime Text 3 and Package Control . 我安装了Sublime Text 3Package Control I'm trying to install SideBarEnhancements but can't figure out how. 我正在尝试安装SideBarEnhancements,但不知道如何。 Instructions say to clone the directory from github into the Packages folder but when I try to do this, it says I do not have permissions. 说明说要将目录从github克隆到Packages文件夹中,但是当我尝试这样做时,它说我没有权限。 Steps taken to try this: 尝试执行此操作的步骤:

  1. Downloaded the zip from here https://github.com/titoBouzout/SideBarEnhancements . 从此处https://github.com/titoBouzout/SideBarEnhancements下载了zip文件。

  2. Copy zip to opt/sublime_text/packages 将zip复制到opt/sublime_text/packages

I tried changing folder permissions in terminal but it would not let me do chmod saying I didn't have permissions. 我尝试在终端中更改文件夹权限,但不会让chmod说我没有权限。 Any help greatly appreciated! 任何帮助,不胜感激!

You are copying to the wrong directory. 您正在复制到错误的目录。

Copy to ~/.config/sublime-text-3/Packages . 复制到~/.config/sublime-text-3/Packages

To find where the Packages directory from Sublime Text go to Menu > Preferences > Browse Packages... . 要找到Sublime Text中Packages目录的位置,请进入Menu > Preferences > Browse Packages...

Rather than downloading and copying to the directory, you can add SideBarEnhancements as a Package Control respository. 您可以将SideBarEnhancements添加为Package Control存储库,而不是下载并复制到该目录。 This will give auto updates. 这将提供自动更新。

  • Main Menu > Preferences > Package Control Menu > Preferences > Package Control
  • Select Add repository 选择Add repository
  • Then paste https://github.com/titoBouzout/SideBarEnhancements/tree/st3 然后粘贴https://github.com/titoBouzout/SideBarEnhancements/tree/st3
  • Now you can install SideBarEnhancements normally via Package Control i. 现在,您可以通过Package Control i正常安装SideBarEnhancements。 open the Command Palette Ctrl + Shift + P and install SideBarEnhancements via the Package Control: Install Package command. 打开命令面板Ctrl + Shift + P ,然后通过Package Control: Install Package命令安装SideBarEnhancements。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM