Discover millions of ebooks, audiobooks, and so much more with a free trial

From $11.99/month after trial. Cancel anytime.

Mastering Sublime Text
Mastering Sublime Text
Mastering Sublime Text
Ebook234 pages1 hour

Mastering Sublime Text

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Mastering Sublime Text is an easy-to-understand, step-by-step guide for learning all of the features of Sublime Text, including author tips and tricks. Every topic includes code examples and highlighted screenshots to make it easier to understand.This book is for developers with experience in any type of programming language, and for those who want to start using Sublime Text or perfect their existing skills. No knowledge of Sublime Text or any other code editor or IDE is expected.
LanguageEnglish
Release dateDec 24, 2013
ISBN9781849698436
Mastering Sublime Text

Related to Mastering Sublime Text

Related ebooks

Internet & Web For You

View More

Related articles

Reviews for Mastering Sublime Text

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Mastering Sublime Text - Dan Peleg

    Table of Contents

    Mastering Sublime Text

    Credits

    About the Author

    About the Reviewers

    www.PacktPub.com

    Support files, eBooks, discount offers and more

    Why Subscribe?

    Free Access for Packt account holders

    Preface

    What this book covers

    What you need for this book

    Who this book is for

    Conventions

    Reader feedback

    Customer support

    Errata

    Piracy

    Questions

    1. Installing Sublime Text

    Preparing for Sublime Text Installation

    Installing Sublime Text on OS X

    Working with Sublime CLI

    Installing Sublime Text on Windows 32/64 bit

    Adding Sublime to the environment

    Installing Sublime Text on Linux

    Installing Sublime Text on Ubuntu 32/64 bit

    Setting Sublime Text as the default editor

    Installing Sublime Text on other Linux distributions

    Adding a desktop file

    Getting to know the Data and Packages directories

    The Data directory

    The Packages directory

    The User package

    Delving into packages, plugins, snippets, and macros

    Running Sublime for the first time

    Simple navigation

    Sublime's command palette

    The Python console

    Installing the Package Control ASAP

    Summary

    2. Code Editing

    Discovering Search and Replace

    Regular Expressions

    Search and Replace – a single file

    The incremental search

    Search and Replace – multiple files

    Mastering Column and Multiple Selection

    Column Selection

    Navigating through everything

    Go To Anything

    Symbol search

    Projects

    Folders

    Settings

    Build systems

    Navigating between projects

    Using the must-have SublimeCodeIntel

    Installing SublimeCodeIntel

    Using SublimeCodeIntel

    Configuring SublimeCodeIntel

    Linting with SublimeLinter

    Installing SublimeLinter

    Using SublimeLinter

    Configuring SublimeLinter

    The must-know shortcuts map

    General

    Tabs

    Bookmarks

    Editing

    Summary

    3. Snippets, Macros, and Key Bindings

    Getting to know a snippet

    Understanding your first snippet

    How do snippets work?

    File format and syntax

    Knowing about snippets' features

    Environment variables

    Field markers

    Mirrored field markers

    Placeholders

    Creating our first snippet

    Using Package Control snippets

    Recording, editing, and using macros

    Recording a macro

    Playing a macro

    Saving and editing

    Binding a saved macro

    New key bindings

    Summary

    4. Customization and Theme Development

    Overriding and maintaining key bindings

    Platform-specific key bindings

    Key map file structure

    Bindable keys

    Advanced key bindings

    Keeping our key bindings organized

    Understanding Sublime's base settings

    The types of settings' files

    Customization walkthrough

    Adding packages

    Tabs and spaces

    Beautifying Sublime with colors and themes

    Visual settings

    Sublime themes

    Color schemes

    Mastering Split Windows

    Summary

    5. Unravelling Vintage Mode

    Understanding Vintage Mode

    Discovering vi

    Setting up Vintage Mode

    Experiencing Vintage Mode features

    Vintage editing modes

    Vintage Mode commands

    Commands for changing modes

    Movement commands

    Editing commands

    Knowing about Vintageous

    Summary

    6. Testing Using Sublime

    Introduction to testing in Sublime Text

    Testing in PHP development

    Knowing about PHPUnit

    Using PHPUnit plugin for Sublime

    Helpful PHPUnit snippets

    Testing in Python development

    Using unittest for Sublime

    Testing in Ruby development

    Using RubyTest for Sublime

    Supporting bundler

    Summary

    7. Debugging Using Sublime

    Introduction to debugging in Sublime Text

    Debugging PHP with Xdebug

    Using Xdebug for Sublime

    Debugging JavaScript with Web Inspector

    Installing Sublime Web Inspector

    Using Sublime Web Inspector (SWI)

    Debugging C/C++ with GDB

    Using SublimeGDB

    Summary

    8. Developing Your Own Plugin

    Warming up before starting a plugin

    Starting a plugin

    Developing the plugin

    Publishing our plugin

    Summary

    Index

    Mastering Sublime Text


    Mastering Sublime Text

    Copyright © 2013 Packt Publishing

    All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

    Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

    Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

    First published: December 2013

    Production Reference: 1171213

    Published by Packt Publishing Ltd.

    Livery Place

    35 Livery Street

    Birmingham B3 2PB, UK.

    ISBN 978-1-84969-842-9

    www.packtpub.com

    Cover Image by Gagandeep Sharma (<[email protected]>)

    Credits

    Author

    Dan Peleg

    Reviewers

    James Brooks

    Dougal Matthews

    Matt Morrison

    Jeffrey Sadeli

    Acquisition Editors

    Kevin Colaco

    Llewellyn Rozario

    Lead Technical Editor

    Larissa Pinto

    Technical Editors

    Gauri Dasgupta

    Monica John

    Proofreader

    Dan McMahon

    Copy Editors

    Roshni Banerjee

    Tanvi Gaitonde

    Mradula Hegde

    Dipti Kapadia

    Insiya Morbiwala

    Deepa Nambiar

    Alfida Paiva

    Shambhavi Pai

    Project Coordinator

    Jomin Varghese

    Indexer

    Hemangini Bari

    Production Coordinator

    Nilesh Bambardekar

    Cover Work

    Nilesh Bambardekar

    About the Author

    Dan Peleg is an accomplished software engineer. As a former developer in the Israeli Intelligence Force, he holds extensive experience in both defense and robotic industries, and has previously lectured at DefCon conventions. Dan has developed unique algorithms for robotic platforms, specializes in a variety of software platforms, and currently works as the CTO for an American startup company.

    I want to thank every plugin developer whose plugin is mentioned in this book. I would also like to thank Stuart Herbert for the content on PHPUnit, and Tom Lahat and Yali Saar for their support.

    About the Reviewers

    James Brooks has been programming for over a decade, starting out at the age of seven. He's worked his way through multiple languages from LOGO to C++ and back again. Having built a custom operating system and several half-baked games, he's now settled into web development. He is currently working at Blue Bay Travel.

    Dougal Matthews is a Python developer based in Scotland. He works for Red Hat, where he helps out with OpenStack. Dougal is also involved in running a number of community events, groups, and conferences.

    Matt Morrison, after trying every development environment available, discovered Sublime Text, and never looked back. He immediately fell in love with its emphasis on text-based configuration files, accessibility of Python API, and vibrant ecosystem of plugins and extensions contributed by the community. Being a tinkerer and a teacher at heart, Matt set about learning as much as he could about the software and sharing his knowledge and passion with others on StackOverflow, the Sublime forums,

    Enjoying the preview?
    Page 1 of 1