Mastering Sublime Text
By Dan Peleg
()
About this ebook
Related to Mastering Sublime Text
Related ebooks
Building Python Real-Time Applications with Storm Rating: 0 out of 5 stars0 ratingsComputer Programming JavaScript, Python, HTML, SQL, CSS Rating: 0 out of 5 stars0 ratingsRedmine Plugin Extension and Development Rating: 0 out of 5 stars0 ratingsDevOps in Python: Infrastructure as Python Rating: 0 out of 5 stars0 ratingsPython for Professionals Rating: 0 out of 5 stars0 ratingsInstant Debian - Build a Web Server Rating: 0 out of 5 stars0 ratingsUnderstanding Python: Beginner's Guide to Programming Rating: 0 out of 5 stars0 ratingsGetting Started with Grunt: The JavaScript Task Runner Rating: 3 out of 5 stars3/5Rust for C++ Programmers: Learn how to embed Rust in C/C++ with ease (English Edition) Rating: 0 out of 5 stars0 ratingsData Structures in C / C ++: Exercises and Solved Problems Rating: 0 out of 5 stars0 ratingsPHP jQuery Cookbook Rating: 0 out of 5 stars0 ratingsNW.js Essentials Rating: 0 out of 5 stars0 ratingsBeginning Linux Programming Rating: 0 out of 5 stars0 ratingsPro Spring Boot 2: An Authoritative Guide to Building Microservices, Web and Enterprise Applications, and Best Practices Rating: 0 out of 5 stars0 ratingsYour First Week With Node.js Rating: 0 out of 5 stars0 ratingsAssembly Language Step-by-Step: Programming with Linux Rating: 3 out of 5 stars3/5PAM Mastery: IT Mastery, #10 Rating: 0 out of 5 stars0 ratingsSimultaneous multithreading A Complete Guide Rating: 0 out of 5 stars0 ratingsMeteor Design Patterns Rating: 0 out of 5 stars0 ratingsBuilding Single-page Web Apps with Meteor Rating: 5 out of 5 stars5/5Modernizing Legacy Applications in PHP Rating: 0 out of 5 stars0 ratingsFlutter for Jobseekers: Learn Flutter and take your cross-platform app development skills to the next level (English Edition) Rating: 0 out of 5 stars0 ratingsLLVM Cookbook Rating: 1 out of 5 stars1/5Cloning Internet Applications with Ruby Rating: 5 out of 5 stars5/5Beginning C: From Beginner to Pro Rating: 0 out of 5 stars0 ratingsPython, PyGame, and Raspberry Pi Game Development Rating: 0 out of 5 stars0 ratingsScripting Superpack For Beginners: Python, Powershell, Bash, And Java Mastery Rating: 0 out of 5 stars0 ratingsLearning PHP Data Objects Rating: 5 out of 5 stars5/5iOS Programming Nuts and bolts Rating: 4 out of 5 stars4/5
Internet & Web For You
How to Disappear and Live Off the Grid: A CIA Insider's Guide Rating: 0 out of 5 stars0 ratingsPython QuickStart Guide: The Simplified Beginner's Guide to Python Programming Using Hands-On Projects and Real-World Applications Rating: 0 out of 5 stars0 ratingsNo Place to Hide: Edward Snowden, the NSA, and the U.S. Surveillance State Rating: 4 out of 5 stars4/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/5Six Figure Blogging Blueprint Rating: 5 out of 5 stars5/5The Gothic Novel Collection Rating: 5 out of 5 stars5/5Coding For Dummies Rating: 5 out of 5 stars5/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/5Social Engineering: The Science of Human Hacking Rating: 3 out of 5 stars3/5Podcasting For Dummies Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Everybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5The Beginner's Affiliate Marketing Blueprint Rating: 4 out of 5 stars4/5Get Rich or Lie Trying: Ambition and Deceit in the New Influencer Economy Rating: 0 out of 5 stars0 ratingsCreate Something Awesome: How Creators are Profiting from Their Passion in the Creator Economy Rating: 0 out of 5 stars0 ratingsThe $1,000,000 Web Designer Guide: A Practical Guide for Wealth and Freedom as an Online Freelancer Rating: 5 out of 5 stars5/5How to Destroy Surveillance Capitalism Rating: 4 out of 5 stars4/5More Porn - Faster!: 50 Tips & Tools for Faster and More Efficient Porn Browsing Rating: 3 out of 5 stars3/5Wireless Hacking 101 Rating: 4 out of 5 stars4/5The Hacker Crackdown: Law and Disorder on the Electronic Frontier Rating: 4 out of 5 stars4/5Cybersecurity For Dummies Rating: 4 out of 5 stars4/5Surveillance and Surveillance Detection: A CIA Insider's Guide Rating: 0 out of 5 stars0 ratingsGrokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5The Mega Box: The Ultimate Guide to the Best Free Resources on the Internet Rating: 4 out of 5 stars4/5The Logo Brainstorm Book: A Comprehensive Guide for Exploring Design Directions Rating: 4 out of 5 stars4/5Wordpress for Beginners: The Easy Step-by-Step Guide to Creating a Website with WordPress 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/5Tor and the Dark Art of Anonymity Rating: 5 out of 5 stars5/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,