PACKAGE CONTROL (Sublime Text 2) 上没有 INSTALL PACKAGE
(操作系统:Ubuntu) 我想在我的 Sublime Text 2 中安装 Sublime ALignment 插件。所以,我已经安装了 Package Control 插件:
import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())
但我无法安装通过包控制进行对齐。我的 Sublime Text 2 上没有 Install Package
选项
。包控制
你能解释一下如何安装 Sublime Alignment (和其他插件)?
(Operation System : Ubuntu)
I want to install Sublime ALignment plugin to my Sublime Text 2 .So, ı have installed Package Control plugin with this :
import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())
But i couldn't install ALignment via Package Control. There isn't Install Package
option on my Sublime Text 2.
Screenshot of Preferences > Package Control
Can you explain me how can i install Sublime Alignment (and other plugins) ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
ST2也有同样的问题。无论如何,看起来这与本地化有关,作为一个快速修复:只需在从命令行启动 Sublime Text 2 之前运行“LANG=C”命令即可。
现在应该可以正常工作了:)
PS:事实上,你回答了我的问题,Eray :) 我一直在寻找解决方案,只是注意到 Eray 也是一个土耳其名字。我注意到我们有一些共同点:)
Had the same problem with ST2. It looks like it's something about localization, anyway, as a quick fix: just run "LANG=C" command before you start Sublime Text 2 from command line.
It should work correctly now :)
PS: In fact, you answered my question, Eray :) I was looking for a fix and just noticed Eray is a Turkish name too. And I noticed we have something in common :)
这很奇怪。尝试从 Packages 文件夹
(首选项 > 浏览软件包)
中删除 Package Control 并重新安装。确保安装后重新启动 Sublime Text。如果它仍然没有出现,您最好的选择是联系 Will Bond 或在 github 上提交问题 (https://github.com/wbond/sublime_package_control/issues)。That's very strange. Try removing Package Control from your Packages folder
(Preferences > Browse Packages)
and reinstalling. Make sure you restart Sublime Text after you install it. If it still doesn't appear, your best option is to contact Will Bond or file an issue on github (https://github.com/wbond/sublime_package_control/issues).我所做的是删除 /Application Support/Sublime Text 2 中的整个 Sublime Text 2 文件夹并重新启动,重新安装
What I did is delete the entire Sublime Text 2 folder in /Application Support/Sublime Text 2 and restart,reinstall