点击上方Linux迷,关注我们
正文来自:https://www.linuxmi.com/centos-sublime-text-3-zhongwen-python.html
Sublime Text是一个跨平台的源代码编辑器,设计简单,速度快,支持许多编程语言和标记语言,你可以使用数千个可用于安装的插件,在RHEL 8/CentOS 8上的Sublime Text 3上解锁更多功能,本文假设你已在CentOS/RHEL 8系统中安装了桌面环境。 第一部分:安装Sublime Text 3 第1步:导入GPG密钥 首先导入Sublime Text 3 GPG密钥: [linuxmi@localhost ~/www.linuxmi.com]$sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg 导入后,将稳定的通道存储库添加到RHEL 8/CentOS 8: [linuxmi@localhost ~/www.linuxmi.com]$sudo wget -P /etc/yum.repos.d/ https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo 对于Dev通道,请使用以下命令: [linuxmi@localhost ~/www.linuxmi.com]$sudo wget -P /etc/yum.repos.d/ https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo 第2步:在CentOS 8/RHEL 8上安装Sublime Text 3 请运行以下命令安装: [linuxmi@localhost ~/www.linuxmi.com]$sudo dnf install sublime-text![04868b114339eda044d3bb3262f43530.png](https://i-blog.csdnimg.cn/blog_migrate/9b9ccfeebf9cc6ad99ffc15e8c95a511.png)
"/home/linuxmi/snap/sublime-text/channel_v3.json"
], 如下图:
![ace1721314a1225d82678003176598bf.gif](https://i-blog.csdnimg.cn/blog_migrate/f772b2b7aca373828d7f4836b2d4dbc9.gif)
![d9d06aa8600bcb9e1d6ec517cf0a66f0.png](https://i-blog.csdnimg.cn/blog_migrate/1997e8283c5f3739bfbea818474fac03.png)
![d0f467f0fefd5379e2977c249da3b508.png](https://i-blog.csdnimg.cn/blog_migrate/23ca8fb8a2c07494908d156657ed0a79.png)
![b076f9fa2831c5360273f8067d34de51.png](https://i-blog.csdnimg.cn/blog_migrate/f74bb9e06704a184b82326f93fcb8088.png)
![2504c1316555ef381c3d792e643b1e0d.png](https://i-blog.csdnimg.cn/blog_migrate/62736dacd1d81c28d54292c4ff2a5f05.png)
![7ff200d908f24819790380602a6b8e8d.png](https://i-blog.csdnimg.cn/blog_migrate/c6fdcc4dc6f0899fb50faf83f153b72c.png)
![e296542ff3c41c3f6b20abe34dce3c28.png](https://i-blog.csdnimg.cn/blog_migrate/1cfd0b8288074e5e0a79dbc3f17657a4.png)
"cmd": ["/usr/bin/python3.6","-u","$file"]
} 3、文件名保存为Python3,后缀默认值,保存位置默认。
![cfa1b8707ab1f6149eac86e2dfb5fcf3.png](https://i-blog.csdnimg.cn/blog_migrate/30b44acaaa654f0f7089d1937297be72.png)
![79244194bac041c120d84a39e8001eb1.png](https://i-blog.csdnimg.cn/blog_migrate/11acc88bb7d607c96c0d9080f0706d62.png)
![0110bcc0048acffef1146b14a1e3d3a3.png](https://i-blog.csdnimg.cn/blog_migrate/18b5993bbae2e187de53b879674652f6.png)
![439d6d6f8c46634695e8f3682630419e.png](https://i-blog.csdnimg.cn/blog_migrate/a2bdbcf2968ae3b03b3bd2288fe163d1.png)
![34830afe42f271330fb9277aa9fe99bf.png](https://i-blog.csdnimg.cn/blog_migrate/405cb5d134ebed4302fc14c42609a090.png)
![34830afe42f271330fb9277aa9fe99bf.png](https://i-blog.csdnimg.cn/blog_migrate/405cb5d134ebed4302fc14c42609a090.png)