Cmder+sublime Text "Base friend" experiment

Source: Internet
Author: User
Tags sublime text


0. Catalogue




      • Directory
      • Introduction
      • Cmder
        • 1 Download and install
        • 2 use
        • tab operation
        • 22 editing operations
      • Sublime Text
      • Cmder and Sublime used together
      • Statement




1. Intro


In front-end project development, Sass, Compass, Gulp, git and so on more and more to use command-line tools, Windows comes with the command-line tool is really unbearable, so cmder become a lot of people's choice. At the same time, sublime text, known as the sexiest, is becoming a "magic weapon" for front-end developers because of its extensibility and customizable nature. How do you make these two "good friends" work together? This article is briefly analyzed below.


2. Cmder


The front-end development of more and more command line use requirements, let us to Windows self-cmd tool quite painful point, have you ever for "blocky" choice bitterly, you have not faced ugly, difficult to adjust the window sigh, you have not tried to "Multi-tab window" deterred, Do you ever get used to the operation of Linux and shake your head with Windows, come on, Cmder solve your pain points.






You can go to the official website for more details, or GitHub to explore it in depth.


2.1 Download & Install
    1. You can download the software on the official website, it is recommended to download the full version containing git-for-windows, simple, for lazy people with a download link.
    2. Unzip to the location you need (I put it in D:\Program Files (x86) \cmder) and put the Cmder bin directory (D:\Program files (x86) \cmder\bin) The environment variable to add to path.
    3. The installation is successful, run the test.
2.2 Use


After installation, we come together to experience the use of Cmder, you have no similar to the sublime color system, I am most excited about the "translucent display" feature, slightly paranoid like, haha. Click, there are surprises yo.




Be careful with the placement of ads, tap!!



Cmder supports Windows CMD operations and some Linux commands, adding support for Clink, Conemu, and git for Windows. The specific operation is summarized as follows.


2.2.1 Tab operation
    • New tab, click the Green Plus button on the lower right side, or the shortcut keyCtrl + t
    • Close Tab,tab Tab Right-click menu Close, or shortcut keyCtrl + w
    • New CMD,Shift + Alt + 1
    • Create a new PowerShell,Shift + Alt + 2
    • Full screen operation,Alt + Enter
    • Toggle tab,Ctrl+Tab或Ctrl+Shift+Tab
2.2.2 Editing operations
    • Copy, selectCtrl+c, orShift + mouse
    • Copy the entire row,Ctrl+Alt+c
    • Paste,Ctrl+vorCtrl + Shift + v, the latter right-click
    • Text traversal, Ctrl, Home, End
    • Directory traversal,Shift + Up
    • Parent directory,Ctrl+Alt+u
    • History command Search,Ctrl+rorCtrl+s
    • Commands are automatically completed,Tabsuch as when writing amkdircommand, the TAB key automatically complements the full command when you can write the MKD.
    • RevokeCtrl+z
    • Show Clink Command Help,Alt+H

      For more information, see the official documentation, or the hotkey section in the setting.

3. Sublime Text


Subliem text is known as the most sexy editor, related to a lot of resources, this article will not repeat. Recommend some relevant resources to everyone.


    1. Official website
    2. Official Plugin Package Control
    3. 10 Sublime Text plugins required for full stack development
    4. Sublime Text Run ES6 (based on Babel)
    5. Windows builds front-end development IDE
4. Combined use of Cmder and sublime


We open the sublime in Cmder by the command line, in a tabbed way, can be well balanced use. As shown in.

The configuration process is relatively straightforward.


    1. Open the aliases file under the Config folder in the Cmder installation directory.
    2. Add an alias by adding a row to the aliases.
subl="D:\PROGRA~1\sublimeText3\sublime$1 -new_console:s50H


Where thesublalias, followed by the path of your sublime, represents the-new_console:s50Hopening of the sublime in the new tab and the horizontal arrangement, which accounts for 50%.
The following action is also possible, I will add sublime Text 2 shortcut, vertical distribution, accounting for 75%.


subl2="D:\PROGRA~1\sublimeText2\sublime$1 -new_console:s75V


Note that there are spaces in the path that need to be substituted using the progra~1 method.


5. Disclaimer


Love front end, music share. Fedfun hope to make progress together with you.
Blog Star selection is in progress, vote for me, thank you for your support.
Welcome any kind of reprint, please indicate loading, keep this paragraph text.
Independent blog Http://whqet.github.io
Sina Weibo Http://weibo.com/FedFun
Geek Headline Http://geek.csdn.net/user/publishlist/whqet



Cmder+sublime Text "Base friend" experiment


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.