Mastering Sublime Text
By Dan Peleg
()
About this ebook
Related to Mastering Sublime Text
Related ebooks
DevOps in Python: Infrastructure as Python Rating: 0 out of 5 stars0 ratingsRedmine Plugin Extension and Development Rating: 0 out of 5 stars0 ratingsComputer Programming JavaScript, Python, HTML, SQL, CSS Rating: 0 out of 5 stars0 ratingsLearning Cython Programming - Second Edition Rating: 0 out of 5 stars0 ratingsApache Solr PHP Integration Rating: 0 out of 5 stars0 ratingsInstant Debian - Build a Web Server Rating: 0 out of 5 stars0 ratingsBuilding Python Real-Time Applications with Storm Rating: 0 out of 5 stars0 ratingsDaniel Arbuckle’s Mastering Python Rating: 0 out of 5 stars0 ratingsGetting Started with Grunt: The JavaScript Task Runner Rating: 3 out of 5 stars3/5Persistence in PHP with Doctrine ORM Rating: 0 out of 5 stars0 ratingsShell Scripting: Expert Recipes for Linux, Bash, and more Rating: 0 out of 5 stars0 ratingsUsing and Administering Linux: Volume 3: Zero to SysAdmin: Network Services Rating: 0 out of 5 stars0 ratingsNW.js Essentials Rating: 0 out of 5 stars0 ratingsSeven Deadliest Unified Communications Attacks Rating: 0 out of 5 stars0 ratingsBeginning C: From Beginner to Pro Rating: 0 out of 5 stars0 ratingsBeginning Linux Programming Rating: 0 out of 5 stars0 ratingsUbuntu Linux Toolbox: 1000+ Commands for Power Users Rating: 4 out of 5 stars4/5Professional Assembly Language Rating: 4 out of 5 stars4/5Scripting Superpack For Beginners: Python, Powershell, Bash, And Java Mastery Rating: 0 out of 5 stars0 ratingsMastering Android Game Development Rating: 0 out of 5 stars0 ratingsPAM Mastery: IT Mastery, #10 Rating: 0 out of 5 stars0 ratingsPHP jQuery Cookbook Rating: 0 out of 5 stars0 ratingsClean Ruby: A Guide to Crafting Better Code for Rubyists Rating: 0 out of 5 stars0 ratingsIntroducing VirtualBox & Debian: MyOwnGeek, #1 Rating: 0 out of 5 stars0 ratingsAssembly Language Step-by-Step: Programming with Linux Rating: 3 out of 5 stars3/5Instant Highcharts Rating: 0 out of 5 stars0 ratingsPython AI Programming Rating: 0 out of 5 stars0 ratingsLearning PHP Data Objects Rating: 5 out of 5 stars5/5Microsoft .NET Framework 4.5 Quickstart Cookbook Rating: 0 out of 5 stars0 ratingsNodeJS: Programmare Web-App Con Javascript: Programmazione Web, #3 Rating: 0 out of 5 stars0 ratings
Internet & Web For You
Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Beginner's Guide To Starting An Etsy Print-On-Demand Shop Rating: 0 out of 5 stars0 ratingsMore Porn - Faster!: 50 Tips & Tools for Faster and More Efficient Porn Browsing Rating: 3 out of 5 stars3/5The $1,000,000 Web Designer Guide: A Practical Guide for Wealth and Freedom as an Online Freelancer Rating: 5 out of 5 stars5/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5The Digital Marketing Handbook: A Step-By-Step Guide to Creating Websites That Sell Rating: 5 out of 5 stars5/5Coding For Dummies Rating: 5 out of 5 stars5/5Introduction to Internet Scams and Fraud: Credit Card Theft, Work-At-Home Scams and Lottery Scams Rating: 4 out of 5 stars4/5The Designer's Web Handbook: What You Need to Know to Create for the Web Rating: 0 out of 5 stars0 ratingsRemote/WebCam Notarization : Basic Understanding Rating: 3 out of 5 stars3/5How To Start A Profitable Authority Blog In Under One Hour Rating: 5 out of 5 stars5/5From Nothing Rating: 5 out of 5 stars5/5Hacking : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Ethical Hacking Rating: 5 out of 5 stars5/5Cybersecurity For Dummies Rating: 4 out of 5 stars4/5The Logo Brainstorm Book: A Comprehensive Guide for Exploring Design Directions Rating: 4 out of 5 stars4/5The Beginner's Affiliate Marketing Blueprint Rating: 4 out of 5 stars4/5Web Designer's Idea Book, Volume 4: Inspiration from the Best Web Design Trends, Themes and Styles Rating: 4 out of 5 stars4/5Six Figure Blogging Blueprint Rating: 5 out of 5 stars5/5C++ Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsHow to Disappear and Live Off the Grid: A CIA Insider's Guide Rating: 0 out of 5 stars0 ratingsLearn JavaScript in 24 Hours Rating: 3 out of 5 stars3/5The Hacker Crackdown: Law and Disorder on the Electronic Frontier Rating: 4 out of 5 stars4/5Mike Meyers' CompTIA Security+ Certification Guide, Third Edition (Exam SY0-601) Rating: 5 out of 5 stars5/5How to Be Invisible: Protect Your Home, Your Children, Your Assets, and Your Life Rating: 4 out of 5 stars4/5How To Start A Podcast Rating: 4 out of 5 stars4/5
Reviews for Mastering Sublime Text
0 ratings0 reviews
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 (<er.gagansharma@gmail.com>)
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,