Showing posts with label Sublime text. Show all posts
Showing posts with label Sublime text. Show all posts

Monday, 18 November 2013

Spell Checking in Sublime text

It is not uncommon for people to misspell common words when they are typing. Many people see the keyboard when they are typing and this causes them to makes spelling errors. It is therefore good to have some spell check program in your text editor.

Sublime text has a built-in spell checker that can be automatically set to check for misspellings.

Just follow the following steps:
  1. Go to Preferences -> Settings - User
  2. In the settings file, type "spell_check": true, and save the file.
  3. That's it

Saturday, 16 November 2013

List of shortcut keys in Sublime Text

Using keyboard shortcuts to perform tasks drastically improves your workflow speed and is very useful when you are typing, as you don't have to alternate between the mouse and the keyboard.

However, to be able to use them you have to know them. I started hunting for the keyboard shortcuts of Sublime text and found that it is already listed within the software as a file.

Just follow the following steps:
Go to Preferences -> Key Bindings - Default
A new file opens with all the shortcuts
P.S.: I am warning you. It is an exhaustive list

The best part about Sublime text is that even these are customisable. Set your own custom shortcuts using the Key Bindings - User. But, that will take another article.
Thank you for Visiting.

Reformatting HTML Code using Sublime Text

I work a lot with HTML and so does a lot of others, who blog often or design webpages. In all these cases, it almost becomes an inevitable process at the end, where you have to reformat your entire webpage's code (unless you have followed the formatting from the beginning or used a professional designer). For anyone who has done this manually, they can understand that it is a chore to perform manually.

I recently started using Sublime text and it has built-in methods to reformat the code.

Just follow the following steps:
  1. Select the entire text using Ctrl+A
  2. Go to Edit->Line->Reindent
  3. Presto. You are done.
Simple, but effective.

Changing Caret in Sublime Text

I have recently started using Sublime text [Download] and I have got to say that I am impressed. It is the best text editor you can get. And, the best part is it has got a ton of customization. You get loads of plugins.

I started getting my hands dirty by changing the common cursor or the caret. To begin, open the preferences either by
01. Ctrl + Shift + P and type in "preferences:user" in the text box or
       02. Prefernces -> Settings -user. 


A new Text file is opened and you have to enter the following lines into it.
"caret_style": "phase",
Save the file and you can see that the cursor (or caret) is now fading in and out.

There are also many other options. You can try
  1. solid
  2. wide
  3. blink
  4. smooth
I posted the first thing that I learned. Let's see what else I learn. Catch you later. Until then. Adios.