Siblime Text is a sophisticated text editor

SUBLIME TEXT IS A SOPHISTICATED TEXT EDITOR FOR CODE, MARKUP AND PROSE

Nina Glushitch, Daria Granatova

National Technical University of Ukraine “Kyiv Polytechnic Institute”

Printing and Publishing Institute

 

Top Features of Sublime Text

Sublime Text has several features that you should know about & use, features that provide great ease of use or power.

Auto-Completion in Sublime Text

Lazy is good when it comes to text editors. Sublime Text auto-completes text; in other words, it figures out what you’re typing & completes it for you. This can save time & typing, as well as making your work more accurate. It’s a great feature for any text editor, & Sublime Text does it really well. In addition, you can also install various packages that will enable additional kinds of auto-completion.

Quickly Insert Text & Code with Sublime Text Snippets

Snippets + field markers + place holders = far less typing! Getting tired of cutting & pasting an HTML5 template? Or typing out the same code all the time? Fortunately, Sublime Text makes it easy to quickly insert code snippets that you define. As you probably know, when you type a p in an HTML document in Sublime Text & press Tab, it automatically expands to <p></p>. But what if you don’t like that (I don’t), & instead want it to expand to this (with the cursor appearing where the pipe is)?

Jump the Cursor to Where You Want To Go

When you’re creating something in a text editor, you’ll often find yourself wanting to jump your cursor to another location in your text. When you’re creating something in a text editor—code, an essay, a blog post, or even fiction—you’ll often find yourself wanting to jump your cursor to another location in your text. Sublime Text offers you several ways to do just that.

Select Multiple Lines, Words, & Columns

One of the absolute coolest features of Sublime Text.

Installation

The process of installing Sublime Text is different for each platform.

32 bits or 64 bits?

Choose the 64-bit version if you’re running a 64-bit operating system, otherwise the 32-bit version.

Windows

Portable or Not Portable?

Sublime Text comes in two flavors for Windows: normal, and portable. If you need the portable installation, you probably know already. Otherwise, go with the normal one.

Normal installations separate data between two folders: the installation folder proper, and the data directory. These concepts are explained later in this guide. Normal installations also integrate Sublime Text with the Windows context menu.

Portable installations will keep all files Sublime Text needs to run in one single folder. You can then move this folder around and the editor will still work.

How to Install the Normal Version of Sublime Text

Download the installer, doubleclick on it and follow the onscreen instructions.

How to Install the Portable Version of Sublime Text

Download the package and uncompress it to a folder of your choice. You will find the sublime_text.exe executable inside that folder.

OS X

Download and open the .dmg file, and then drag the Sublime Text 2 bundle into the Applications folder.

Linux

You can download the package and uncompress it manually. Alternatively, you can use the command line.

Lastly, we create a symbolic link to use at the command line.

sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime In Ubuntu, if you also want to add Sublime Text to the Unity luncher, read on. First we need to create a new file. Then copy the following into it. If you’ve registered your copy of Sublime Text, but every time you open it you’re asked to enter your license, you should try running a command. Just replace username with your account’s username. This should fix the permission error in the case that you opened up Sublime Text as root when you first entered the license.

Good Sources of Info on Sublime Text

Perfect Workflow in Sublime Text 2
Over 3 hours of videos walking you through all aspects of ST.

Some things beginners might not know about Sublime Text

Multiple cursors: You can edit multiple lines of code simultaneously very easily by holding down Cmd (ctrl for Windows) and then clicking different lines with your mouse.

Reopening closed tabs: Just as with Chrome, if you accidentally close a file that you’d like to reopen, just press Shift +Cmd + T (or Shift + ctrl + T on Windows). If you keep pressing that key combo, ST will continue opening tabs in the order that you closed them.

Quick file opening: This is perhaps my favorite ST feature. Hold down Cmd + T (or ctrl + T on Windows) to open a textfield that lets you search for files within a project to open. You’ll rarely ever have to use the file tree again.

Jumping to symbols: To quickly jump to specific symbols, hold down Cmd + P (or ctrl + P on Windows) to open up a search field. Type in your symbol and press enter.

Search entire project files: To search the contents of an entire ST project, hold down Shift + Cmd + F (Shift + ctrl + F on Windows).

Jumping between words/lines: This is more of an operating system feature, but I discovered it while using ST. On Macs, if you hold down Alt while using the arrow keys, you jump between words rather than characters. Similarly, if you hold down Cmd while using arrow keys, you jump from the opposite end of a line. Very useful for quickly navigating code without your mouse.

Quickly change settings: Shift + Cmd + P (Shift + ctrl + P on Windows) opens a quick search to allow you to modify Sublime Text preferences.

Jumping between word segments: ”If you hold down control, you move by word segment — this is camel-case (and underscore) aware. So, if I am at the front of the word “cakeParty”, I can move to between ‘e’ and ‘P’ by holding control and pressing the right arrow key.”

Move current line up/down: “You can also move the curent line up and down the page using Ctrl + Cmd + Up/Down”.

Sublime Package Control: “Useful for installing things like themes, syntax awareness, code linters, etc…”.

Quick word editing: “Cmd + d selects the current word. Subsequent Cmd + d presses will select the following instance of the word for editing. Makes it easy to do things such as renaming a local variable or changing both the opening and closing element of a HTML tag.”

Fine-grained find+replace/modify: “Another one i’ve found useful is CMD+D / CMD+K+D. CMD+D finds the next instance of the current selection and creates another cursor there (and selects it as well). CMD+K+D skips the current selection and finds the next one.”

Select all instances: You can select all instances using cmd + ctrl + G.

Go to a specific line: You can jump to a line by using Ctrl + G and typing in the line #.

Duplicate current line: “Ctrl/Cmd+Shift+D duplicates line/selected text”.

Some things users love about Sublime Text

Goto Anything – Use Goto Anything to open files with only a few keystrokes, and instantly jump to symbols, lines or words.

Multiple Selections – Make ten changes at the same time, not one change ten times. Multiple selections allow you to interactively change many lines at once, rename variables with ease, and manipulate files faster than ever.

Command Palette – The Command Palette holds infrequently used functionality, like sorting, changing the syntax and changing the indentation settings. With just a few keystrokes, you can search for what you want, without ever having to navigate through the menus or remember obscure key bindings.

Distraction Free Mode – When you need to focus, Distraction Free Mode is there to help you out. Distraction Free Mode is full screen, chrome free editing, with nothing but your text in the center of the screen. You can incrementally show elements of the UI, such as tabs and the find panel, as you need them.

Split Editing – Get the most out of your wide screen monitor with split editing support. Edit files side by side, or edit two locations in the one file. You can edit with as many rows and columns as you wish.

Customize Anything – Key Bindings, Menus, Snippets, Macros, Completions and more — just about everything in Sublime Text is customizable with simple JSON files. This system gives you flexibility as settings can be specified on a per-file type and per-project basis.

 

 

References

  1. Alainmeier, “Some things beginners might not know about Sublime Text,” blog; http://blog.alainmeier.com/post/27255145114/some-things-beginners-might-not-know-about-sublime-text
  2. Scott Granneman, “Sublime Text,” blog; http://www.granneman.com/webdev/editors/sublime-text/
  3. Jeffrey Way, “Perfect workflow in Sublime Text 2”; https://tutsplus.com/course/improve-workflow-in-sublime-text-2/
  4. Blog “Sublime Text”; http://www.sublimetext.com/
  5. Sublime Text Community, blog; http://docs.sublimetext.info/en/latest/getting_started/install.html
  6. Skinner, Jon. «Sublime Text». Sublime HQ Pty Ltd. Retrieved 19 August 2011
  7. Skinner, Jon. «Sublime Blog». Sublime Blog. Sublime HQ Pty Ltd. Retrieved 19 August 2011

 

For PowerPoint Presentation — see the CD

 

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *

Можно использовать следующие HTML-теги и атрибуты: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>