Post

The Complete Visual Guide to Sublime Text 3: Getting Started and Keyboard Shortcuts

Draft updated on Invalid Date
    Default avatar

    By Nicholas Cerminara

    The Complete Visual Guide to Sublime Text 3: Getting Started and Keyboard Shortcuts

    This tutorial is out of date and no longer maintained.

    Introduction

    Sublime Text 3 is a blast to develop with. We’ve got a ton of feedback since our last article that Chris shared. These posts are intended to be a sequel to that, with all your feedback collected, and some new findings of our own. This series will take you from a plain vanilla install of Sublime Text 3 to having it be your personal supercharged text editor with the best plugins, features, settings, and themes available on the web. We’ve also put together as many short HTML5 video demos of it as possible so you can see the beauty of Sublime Text 3 in action.

    Step 1: Install

    At the time of writing this, Sublime Text 3 is still in Public Beta; however, I wouldn’t let that scare you off from making the jump from 2 to 3. I have found no problems with it, and most plugins seem to now support it. You can download the Sublime Text 3 Public Beta here.

    Download Sublime Text 3 Here

    Heads Up! Sublime Text may be downloaded and evaluated for free, however, a license must be purchased for continued use. There is no enforced time limit for the evaluation.

    Step 2: Install Package Control

    Sublime Text Packages are anything from plugins, syntax highlighting definitions, menus, snippets, and more. The real beauty comes from the developers who make these packages.

    Package Control is a package manager for Sublime that allows you to easily install any of the hundreds of awesome plugins made by other developers. The best part is, you’ll never have to leave Sublime to search, install, or remove these.

    Keyboard Shortcuts

    Chris has already written a pretty extensive post on Sublime Text 3 Shortcuts. You can find that post here. Below you’ll find some of the best keyboard shortcuts and tricks that stand out amongst them all.

    Command Palette

    This is one of the most used commands. Just popup open the Command Palette and search for things like settings, options, syntax, and shortcuts. Most third-party packages that you’ll install hook into this. One of the first things I do when I install a plugin is see what it added to the Command Palette. Some examples of things you can access are:

    • Settings
    • Changing Syntax
    • Snippets from Plugins
    • Actions from plugins (Git Commands, Block Comments, etc.)
    OS KEYS
    Apple COMMAND+SHIFT+P
    Windows CTRL+SHIFT+P

    Ultra-Fast File Switching

    Use this command to navigate to open new files. The search is extremely smart, and lets you do things like:

    • style.css
    • power.js
    • index.php
    • some-path/index.php
    OS KEYS
    Apple COMMAND+P
    Windows CTRL+P

    Go to Symbol / Definition / Method / Function

    This functionality is awesome, and IDE fans and users surely will appreciate this. Sublime Text 3 indexes functions, methods, definitions, etc. so you can search them and easily switch to them. Sublime Text 3 also has the added benefit of being able to search these project-wide (something Sublime Text 2 was lacking). Some example use cases for this are:

    • Quickly going to a function on the current page.
    • Going to a function on another page.
    • Search an entire project for a function.

    Searching the Same Page

    OS KEYS
    Apple COMMAND+R
    Windows CTRL+R

    Search a file then search that page

    OS KEYS
    Apple COMMAND+P then @
    Windows CTRL+P then @

    Search an entire project

    OS KEYS
    Apple COMMAND+SHIFT+R
    Windows CTRL+SHIFT+R

    Multi-Select and Edit

    Sometimes you quickly want to just select all similar strings or words, or, sometimes, you need to edit on multiple lines the same thing. Expert Vim users will probably laugh at this, but this is a ridiculously useful and easy tick.

    Keyboard Method

    OS KEYS
    Apple COMMAND+D
    Windows CTRL+D

    Mouse Method

    OS KEYS
    Apple COMMAND+MOUSE-CLICK, MOUSE-CLICK, MOUSE-CLICK...
    Windows CTRL+MOUSE-CLICK, MOUSE-CLICK, MOUSE-CLICK...

    Noteworthy Others

    Here are some others that are still definitely worth checking out. We also already have an entire article on Sublime Text 3 keyboard shortcuts already written out. I recommend checking that out and testing all the shortcuts to see which ones work with your developer workflow.

    Distraction Free Mode

    OS KEYS
    Apple COMMAND+CONTROL+SHIFT+F
    Windows SHIFT+F11

    Toggle Sidebar

    OS KEYS
    Apple COMMAND+K, COMMAND+B or COMMAND+K+B
    Windows CTRL+K+B

    Toggle Comment

    OS KEYS
    Apple COMMAND+/
    Windows CTRL+/

    Duplicate Line

    OS KEYS
    Apple COMMAND+SHIFT+D
    Windows CTRL+SHIFT+D

    Multiple Columns

    OS KEYS
    Apple COMMAND+OPTION+1 to 4
    Windows ALT+SHIFT+1 to 4

    Four Panes (2x2)

    OS KEYS
    Apple COMMAND+SHIFT+5
    Windows ALT+SHIFT+5

    Go to Line

    OS KEYS
    Apple CONTROL+G
    Windows CTRL+G

    Conclusion

    Continue your learning with Themes, Color Schemes, and Cool Features.

    Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

    Learn more about us


    About the authors
    Default avatar
    Nicholas Cerminara

    author

    Still looking for an answer?

    Ask a questionSearch for more help

    Was this helpful?
     
    Leave a comment
    

    This textbox defaults to using Markdown to format your answer.

    You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

    Try DigitalOcean for free

    Click below to sign up and get $200 of credit to try our products over 60 days!

    Sign up

    Join the Tech Talk
    Success! Thank you! Please check your email for further details.

    Please complete your information!

    Get our biweekly newsletter

    Sign up for Infrastructure as a Newsletter.

    Hollie's Hub for Good

    Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

    Become a contributor

    Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

    Welcome to the developer cloud

    DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

    Learn more
    DigitalOcean Cloud Control Panel