sublime安装问题
Tofloor
poster avatar
Jiahao
deepin
2020-01-13 01:09
Author
刚买了magicbookpro,安装了应用商店,发现商店里没有sublime,问一下该怎么安装这个软件呢?专业版的商店里应用与社区办的不一样吗
Reply Favorite View the author
All Replies
avatar
pgxppp
deepin
2020-01-13 07:14
#1
本帖最后由 pgxppp 于 2020-1-13 08:20 编辑
https://bbs.deepin.org/post/187908
何不从官网下载安装呢http://www.sublimetext.com/3

下载了个绿色包,可以直接运行,但是小白又不知该怎么搞进开始菜单。
sudo apt install sublime-text 但不是最新的,可以用新版本覆盖。
官方教程http://www.sublimetext.com/docs/3/linux_repositories.html

Reply View the author
avatar
ancing
deepin
2020-01-13 11:35
#2
本帖最后由 anxing 于 2020-1-13 03:39 编辑

从官网下载,解压之后,命令行执行
  1. sudo dedit /usr/share/applications/sublime_text.desktop
Copy the Code
把下面的内容填进去,并且把其中的/opt/sublime_text/sublime_text 改成你自己的路径
  1. [Desktop Entry]
  2. Version=1.0
  3. Type=Application
  4. Name=Sublime Text
  5. GenericName=Text Editor
  6. Comment=Sophisticated text editor for code, markup and prose
  7. Exec=/opt/sublime_text/sublime_text %F
  8. Terminal=false
  9. MimeType=text/plain;
  10. Icon=sublime-text
  11. Categories=TextEditor;Development;
  12. StartupNotify=true
  13. Actions=Window;Document;

  14. [Desktop Action Window]
  15. Name=New Window
  16. Exec=/opt/sublime_text/sublime_text -n
  17. OnlyShowIn=Unity;

  18. [Desktop Action Document]
  19. Name=New File
  20. Exec=/opt/sublime_text/sublime_text --command new_file
  21. OnlyShowIn=Unity;
Copy the Code
Reply View the author
avatar
pgxppp
deepin
2020-01-13 16:20
#3
sudo apt install sublime-text 但不是最新的,可以用新版本覆盖。
官方教程http://www.sublimetext.com/docs/3/linux_repositories.html
Reply View the author
avatar
落叶
deepin
2020-01-13 18:26
#4
vscode它不香吗
Reply View the author
avatar
pgxppp
deepin
2020-01-13 23:12
#5
https://bbs.deepin.org/post/187908
下载解压 在下载目录(非解压目录)打开终端
sudo mv sublime_text_3 /opt/sublime_text/  #移动到/opt  ...

我添加了官方源
Reply View the author
avatar
pgxppp
deepin
2020-01-13 23:39
#6
本帖最后由 pgxppp 于 2020-1-13 15:40 编辑

能用的,按官方教程操作就可以添加源,然后安装,和覆盖一样用,升级方便些
官方教程http://www.sublimetext.com/docs/3/linux_repositories.html
Reply View the author