命令行subl

Sublime Text 3 was recently updated to Build 3065. If you're not on the bleeding edge dev builds, you won't see updates too often. When they happen, though, there's always some fun stuff in the update.

Sublime Text 3最近更新到了Build3065。如果您不是最新的开发版本 ,您不会经常看到更新。 但是,当它们发生时,更新中总会有一些有趣的东西。

In this latest update, two things stood out. One is having cool icons in the sidebar next to our files, and the other is geared towards Windows users. Windows users now have a command line helper in subl.exe!

在此最新更新中,有两点引人注意。 一种是在我们文件旁边的侧栏中有很酷的图标,另一种是针对Windows用户的。 Windows用户现在在subl.exe具有命令行帮助subl.exe

Mac users have had this for a long time (subl) and it's great to see the equivalent come to Windows.

Mac用户已经有很长时间了( subl ),很subl看到Windows出现了这种情况。

什么是Sublime命令行助手? (What is the Sublime Command Line Helper?)

For those of you that don't know what it is and why it's so great, let's talk about how we currently add files and folders to Sublime.

对于不知道它是什么以及为什么如此之大的那些人,让我们谈谈当前我们如何向Sublime添加文件和文件夹。

The options that were available were to:

可用的选项包括:

  • Drag and drop a file/folder into Sublime将文件/文件夹拖放到Sublime中
  • Use the Open commands in the menu使用菜单中的“ 打开”命令

Now with the command line helper, we can add files/folders to Sublime straight from the command line!

现在有了命令行帮助器,我们可以直接从命令行向Sublime添加文件/文件夹

Let's take a look at how we can get everything set up. Go ahead and update Sublime Text to make sure you have the latest Build 3065 (Help -> Check for Updates). After the update, you may be able to go into your command line and type:

让我们看一下如何设置所有内容。 继续并更新Sublime Text,以确保您具有最新的Build 3065( 帮助 -> 检查更新 )。 更新之后,您可以进入命令行并键入:

subl.exe

subl.exe

This should open up Sublime Text.

这应该打开Sublime Text。

@media (max-width: 1280px) { .go-go-gadget-react img:first-child { display: none; } }@media (max-width: 780px) {.go-go-gadget-react { flex-direction: column; }.go-go-gadget-react img { margin-left: 0 !important; margin-bottom: 12px !important; }.header-thingy { margin-top: 20px; }.button-thingy { margin-left: 0 !important; margin-top: 12px !important; }} @media (max-width: 1280px) { .go-go-gadget-react img:first-child { display: none; } }@media (max-width: 780px) {.go-go-gadget-react { flex-direction: column; }.go-go-gadget-react img { margin-left: 0 !important; margin-bottom: 12px !important; }.header-thingy { margin-top: 20px; }.button-thingy { margin-left: 0 !important; margin-top: 12px !important; }}

If you get the error command not found then we'll need to set some things up.

如果您收到未找到的错误命令,则需要进行一些设置。

向您的路径添加崇高 (Adding Sublime to Your PATH)

The command wasn't found because Sublime Text isn't in your PATH. The things in your Windows PATH are accessible via the command line so we'll need to go ahead and add it. We will need to go into our Environment Variables settings. Do this by going to:

找不到该命令,因为Sublime Text不在您的PATH中。 您可以通过命令行访问Windows PATH中的内容,因此我们需要继续进行添加。 我们将需要进入我们的环境变量设置。 为此,请执行以下操作:

System Properties -> Advanced System Settings -> Advanced -> Environment Variables

系统属性 -> 高级系统设置 -> 高级 -> 环境变量

A nice shortcut to do this is to open up your command line and typing sysdm.cpl. That will open up the window we need.

一个不错的捷径是打开命令行并输入sysdm.cpl 。 这将打开我们需要的窗口。

Create a New System Variable Create a new system variable called SUBLIME that will point to the folder of your Sublime installation.

创建一个新的系统变量创建一个名为SUBLIME的新系统变量,该变量将指向Sublime安装目录。

Add the System Variable to Your PATH Add the following to the end of your PATH variable: ;%SUBLIME%

将系统变量添加到PATH中将以下内容添加到PATH变量的末尾: ;%SUBLIME%

Now if you restart your command line (I'm using a mixture of Git Bash and ConEmu), then you should have the subl.exe command at your disposal!

现在,如果您重新启动命令行(我使用的是Git Bash和ConEmu的混合物),那么您应该可以使用subl.exe命令!

subl.exe进入新的Sublime窗口 (subl.exe Into New Sublime Window)

You now have the ability to open a file or folder in a new Sublime window. Just find the one you want and type:

现在,您可以在新的Sublime窗口中打开文件或文件夹。 只需找到您想要的那个并输入:

subl.exe file_name or subl.exe folder_name

subl.exe file_namesubl.exe folder_name

subl.exe进入相同的Sublime窗口 (subl.exe Into Same Sublime Window)

To open files or folders into the current Sublime Text window, just add the --add modifier to your subl.exe command.

要将文件或文件夹打开到当前的Sublime Text窗口中,只需在您的subl.exe命令中添加--add修饰符即可。

subl.exe file_name --add or subl.exe folder_name --add

subl.exe file_name --addsubl.exe folder_name --add

结论 (Conclusion)

With every version, Sublime Text just keeps getting better and better. With the addition of subl.exe this brings a long wanted feature that was on Mac to the Windows users.

在每个版本中,Sublime Text都在变得越来越好。 通过添加subl.exe这为Windows用户带来了Mac上早已想要的功能。

For more Sublime Text goodness, check out these articles:

有关Sublime Text的更多信息,请查看以下文章:

Best of Sublime Text 3 The Complete Visual Guide to Sublime Text 3

最佳Sublime Text 3 完整视觉指南Sublime Text 3

Sublime Text logo used in the Featured Image by Ronan Flynn

Ronan Flynn的精选图片中使用了Sublime Text徽标

翻译自: https://scotch.io/tutorials/open-sublime-text-from-the-command-line-using-subl-exe-windows

命令行subl

命令行subl_使用Subl.exe从命令行打开Sublime文本(Windows)相关推荐

  1. x264源代码简单分析:x264命令行工具(x264.exe)

    ===================================================== H.264源代码分析文章列表: [编码 - x264] x264源代码简单分析:概述 x26 ...

  2. 报错:此操作系统版本不支持此选项。管理员应使用“打开或关闭 Windows 功能”对话框、“服务器管理器”管理工具或 dism.exe 命令行工具安装/卸载包含 IIS8 的 ASP.NET 4.5

    现象再现: windows server 服务器的iis 应用程序池没有ASP.NET 4.5, 过程再现: 根据资料提示重新注册ASPNET_IIS.exe -i 直接提示: C:\WINDOWS\ ...

  3. cmd.exe 的命令行启动参数(可用于执行命令、传参或进行环境配置)

    有一些程序不支持被直接启动,而要求通过命令行启动.这个时候,你就需要使用 cmd.exe 来启动这样的程序.我们都知道如何在 cmd.exe 中启动一个程序,但是当你需要自动启动这个程序的时候,你就需 ...

  4. Microsoft Windows Installer 工具 Msiexec.exe 的命令行选项

    摘自:http://support.microsoft.com/kb/314881/zh-cn 概要 本文列出了 Windows Installer 工具 Msiexec.exe 的命令行选项.Msi ...

  5. Msiexec.exe 的命令行选项

    来源地址:http://support.microsoft.com/kb/314881/zh-cn 下面是可用于 Msiexec.exe 的命令行选项.必须至少指定一个选项才能运行 Msiexec.e ...

  6. qt执行命令行失败_QT中QProcess调用命令行的痛苦经历

    在QT程序中需要将某些目录和文件压缩为一个rar的压缩包,于是想到了在QT中通过QProcess类调用命令行的rar.exe来达到效果,但是没想到QProcess类用起来很麻烦,而且达不到效果,折腾了 ...

  7. DOS或命令行下查看进程,结束进程命令

    DOS或命令行下查看进程,结束进程命令  XP中和进程有关的命令: 在system32目录中,dir task* 会看到如下几个文件: +------------------------------+ ...

  8. windows下cmd命令行显示UTF8字符设置(CHCP命令)

    点我进入原文 windows下cmd命令行显示UTF8字符设置(CHCP命令) 在中文Windows系统中,如果一个文本文件是UTF-8编码的,那么在CMD.exe命令行窗口(所谓的DOS窗口)中不能 ...

  9. mysql命令行批量添加数据_mysql命令行批量插入100条数据命令

    先介绍一个关键字的使用: delimiter 定好结束符为"$$",(定义的时候需要加上一个空格) 然后最后又定义为";", MYSQL的默认结束符为" ...

最新文章

  1. 区块链赚钱的9种方式
  2. 人群分割--Fully Convolutional Neural Networks for Crowd Segmentation
  3. Angular2入门:TypeScript的装饰器
  4. python代码基础题-python每日经典算法题5(基础题)+1(中难题)
  5. SGS 客户端协议解析
  6. MSSQL如何在没有主键的表中删除重复数据
  7. JS代码 是否显示横竖条
  8. 核心控制芯片选型建议书(中低端)
  9. 【ES】学习5-全文搜索
  10. 对标Postman的ApiPost创始人:用户,是ApiPost唯一的信仰
  11. programming review (c++): (1)vector, linked list, stack, queue, map, string, bit manipulation
  12. struts 2 时间控件
  13. JxBrowser 7.16 Crack by Xacker
  14. 驻马店计算机招聘信息网,2017河南职称计算机考试报名:驻马店职称计算机报名入口...
  15. 工业软件巨头解读:西门子是一家软件公司,达索是一家“3D体验”公司
  16. Ubuntu18.04下安装git记录
  17. angular4 监听input框输入值的改变 (实用、赞)
  18. 世界气象日话“海洋气象”系列之——CMRC
  19. cisco3560及二层交换机配置vlan及常用命令
  20. 给自己一个整洁的办公环境,我是指你的电脑系统

热门文章

  1. 视频教程| 3D版切水果游戏开发实战:认识水果
  2. 快4倍!Facebook纽约大学用AI加速核磁共振成像
  3. mysql团购活动报名_在公众号里边商家如何设置团购,怎么做微信团购活动
  4. 51单片机入门(江科大)之个人笔记
  5. python识别excel文件格式 ——(专栏:基于python编写简单office阅卷程序②)
  6. 【STM32】stm32f407 + DS18B20 碰出不一样的火花
  7. repo的使用步骤(ubuntu系统)
  8. windows 安装 xtensa tool chain
  9. 《JavaScript高级程序设计 (第3版)》学习笔记13:chapter_5 - 4 RegExp类型
  10. 第三届软件测试火焰杯比赛开启,可以报名啦!