> 在sublime的安装目录下有个subl.exe,是sublime为用户提供的命令行工具,想要在任何位置使用该工具,将sublime安装路径配置到 `系统环境变量 Path` 中即可 #### 1. sublime 安装目录下的 `subl.exe` 命令行工具文件 --- ![](https://img.itqaq.com/art/content/5026263662065e3b7d96f4a1642e00bc.png) #### 2. 将 sublime 安装路径配置到 `系统环境变量 Path` 中 --- ![](https://img.itqaq.com/art/content/5d2befb4c573a79f81c32046f8d74e4c.png) #### 3. `subl 命令行工具` 查看 sublime版本 --- ```shell subl -v subl --version ``` ![](https://img.itqaq.com/art/content/4f600a69c7f18a59107c3bc41ece0001.png) #### 4. `subl 命令行工具` 打开文件和目录 --- 使用 sublime 打开当前目录 ```shell subl . ``` 使用sublime打开当前目录下的 1.txt 文件 ```shell subl 1.txt ```