zoukankan      html  css  js  c++  java
  • sublime3 打开终端

    一、安装terminal包

    这就不多说了:

    1. ctrl + shift + p 搜索package install
    2. 弹出package搜索框,在搜索terminal,点击安装即可。

    二、配置终端路径

    Cmder on Windows

    {
      // window下终端路径
      "terminal": "C:\MyAPP\cmder\Cmder.exe",
      //  window下终端参数
      "parameters": ["/START", "%CWD%"]
    }

    xterm on GNU/Linux

    {
      "terminal": "xterm"
    }

    iTerm on OS X

    {
      "terminal": "iTerm.sh"
    }

    iTerm on OS X with tabs

    {
      "terminal": "iTerm.sh",
      "parameters": ["--open-in-tab"]
    }

    三、快键键

    我不喜欢自定义快捷键,自定义很多时候是多余的,还不如通过cli去操作,另外操作别人的电脑或者别人操作你的电脑,乱配置,谁用得惯?!所以,一般默认就好

    • ctrl+shift+t 打开文件所在文件夹
    • ctrl+shift+alt+t 打开文件所在项目的根目录文件夹
    "keys": ["ctrl+shift+t"], 
    "command": "open_terminal" ,
    "keys": ["ctrl+shift+alt+t"], 
    "command": "open_terminal_project_folder" 

    四、示例

    打开设置

    {
    // The command to execute for the terminal, leave blank for the OS default
    // See https://github.com/wbond/sublime_terminal#examples for examples
    "terminal": "C:\Windows\System32\cmd.exe",
    
    // A list of default parameters to pass to the terminal, this can be
    // overridden by passing the "parameters" key with a list value to the args
    // dict when calling the "open_terminal" or "open_terminal_project_folder"
    // commands
    "parameters": ["/START", "%CWD%"],
    
    // An environment variables changeset. Default environment variables used for the
    // terminal are inherited from sublime. Use this mapping to overwrite/unset. Use
    // null value to indicate that the environment variable should be unset.
    "env": {},
    
    "keys": ["ctrl+shift+t"], "command": "open_terminal" ,
    "keys": ["ctrl+shift+alt+t"], "command": "open_terminal_project_folder" ,
    
    }
    
  • 相关阅读:
    数组系列教材 (二)- Java 如何初始化数组
    数组系列教材 (一)- Java 如何创建一个数组
    数组系列教材 (一)- Java 如何创建一个数组
    JAVA 面试题
    JAVA 面试题
    JAVA 面试题
    HelloWorld系列(五)- 在Eclipse中运行第一个 java 程序
    [LeetCode] 142. Linked List Cycle II
    [LeetCode] 141. Linked List Cycle
    [LeetCode] 82. Remove Duplicates from Sorted List II
  • 原文地址:https://www.cnblogs.com/yzg-14/p/13196440.html
Copyright © 2011-2022 走看看