Mastering Sublime Text
By Dan Peleg
()
About this ebook
Related to Mastering Sublime Text
Related ebooks
Redmine Plugin Extension and Development Rating: 0 out of 5 stars0 ratingsDevOps in Python: Infrastructure as Python Rating: 0 out of 5 stars0 ratingsGetting Started with Grunt: The JavaScript Task Runner Rating: 3 out of 5 stars3/5Instant Play Framework Starter Rating: 0 out of 5 stars0 ratingsCommon Lisp A Complete Guide Rating: 1 out of 5 stars1/5NW.js Essentials Rating: 0 out of 5 stars0 ratingsClean Ruby: A Guide to Crafting Better Code for Rubyists Rating: 0 out of 5 stars0 ratingsPython, PyGame, and Raspberry Pi Game Development Rating: 0 out of 5 stars0 ratingsLisp (programming language) Complete Self-Assessment Guide Rating: 1 out of 5 stars1/5Python AI Programming: Navigating fundamentals of ML, deep learning, NLP, and reinforcement learning in practice Rating: 0 out of 5 stars0 ratingsIntroduction to PHP, Part 4, Second Edition Rating: 0 out of 5 stars0 ratingsYour First Week With Node.js Rating: 0 out of 5 stars0 ratingsIntroduction to PHP, Part 3, Second Edition Rating: 0 out of 5 stars0 ratingsBeginning C: From Beginner to Pro Rating: 0 out of 5 stars0 ratingsExploring C++20: The Programmer's Introduction to C++ Rating: 0 out of 5 stars0 ratingsPHP jQuery Cookbook Rating: 0 out of 5 stars0 ratingsDesigning Microservices with Django: An Overview of Tools and Practices Rating: 0 out of 5 stars0 ratingsRust In Practice: A Programmers Guide to Build Rust Programs, Test Applications and Create Cargo Packages Rating: 0 out of 5 stars0 ratingsShell Scripting: Expert Recipes for Linux, Bash, and more Rating: 0 out of 5 stars0 ratingsHTML5 for .NET Developers: Single page web apps, JavaScript, and semantic markup Rating: 0 out of 5 stars0 ratingsReference to PHP, Second Edition Rating: 0 out of 5 stars0 ratingsLearn Python Programming the Easy and Fun Way Rating: 1 out of 5 stars1/5Neural Networks with Python Rating: 0 out of 5 stars0 ratingsIntroducing Algorithms in C: A Step by Step Guide to Algorithms in C Rating: 0 out of 5 stars0 ratingsjQuery 2.0 Development Cookbook Rating: 0 out of 5 stars0 ratingsWindows Presentation Foundation 4.5 Cookbook Rating: 0 out of 5 stars0 ratingsC++ Programming Cookbook Rating: 0 out of 5 stars0 ratingsSimultaneous multithreading A Complete Guide Rating: 0 out of 5 stars0 ratingsPthreads Complete Self-Assessment Guide Rating: 0 out of 5 stars0 ratings
Internet & Web For You
No Place to Hide: Edward Snowden, the NSA, and the U.S. Surveillance State Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Coding For Dummies Rating: 5 out of 5 stars5/5How To Start A Profitable Authority Blog In Under One Hour Rating: 5 out of 5 stars5/5Six Figure Blogging Blueprint 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 Disappear and Live Off the Grid: A CIA Insider's Guide Rating: 0 out of 5 stars0 ratingsWireless Hacking 101 Rating: 5 out of 5 stars5/5The $1,000,000 Web Designer Guide: A Practical Guide for Wealth and Freedom as an Online Freelancer Rating: 4 out of 5 stars4/5Social Engineering: The Science of Human Hacking Rating: 3 out of 5 stars3/5The Beginner's Affiliate Marketing Blueprint Rating: 4 out of 5 stars4/5An Ultimate Guide to Kali Linux for Beginners Rating: 3 out of 5 stars3/5Tor and the Dark Art of Anonymity Rating: 5 out of 5 stars5/5Wordpress for Beginners: The Easy Step-by-Step Guide to Creating a Website with WordPress Rating: 5 out of 5 stars5/5JavaScript All-in-One For Dummies Rating: 5 out of 5 stars5/5HTML in 30 Pages Rating: 5 out of 5 stars5/5The Hacker Crackdown: Law and Disorder on the Electronic Frontier Rating: 4 out of 5 stars4/5WordPress For Dummies Rating: 0 out of 5 stars0 ratingsSix Figure Blogging In 3 Months Rating: 3 out of 5 stars3/5How To Make Money Blogging: How I Replaced My Day-Job With My Blog and How You Can Start A Blog Today Rating: 4 out of 5 stars4/5The Gothic Novel Collection Rating: 5 out of 5 stars5/5Cybersecurity For Dummies Rating: 5 out of 5 stars5/5Podcasting 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 ratingsSurveillance and Surveillance Detection: A CIA Insider's Guide Rating: 3 out of 5 stars3/5Blogging For Dummies Rating: 0 out of 5 stars0 ratingsThe Cyber Attack Survival Manual: Tools for Surviving Everything from Identity Theft to the Digital Apocalypse Rating: 0 out of 5 stars0 ratings
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 (<[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,