Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
TextMate How-To

You're reading from  TextMate How-To

Product type Book
Published in Oct 2012
Publisher Packt
ISBN-13 9781849693981
Pages 76 pages
Edition 1st Edition
Languages
Author (1):
Christopher J Mears Christopher J Mears
Profile icon Christopher J Mears

Converting text (Must know)


This task will demonstrate how to convert text in various ways.

How to do it...

TextMate provides the following text conversions:

  • Uppercase: This will convert the entire selected text to uppercase letters. From the menu, select Text | Convert | to Uppercase (Control + U).

  • Lowercase: This will convert the entire selected text to lowercase letters. From the menu, select Text | Convert | to Lowercase (Control + Shift + U).

  • Title case: This will convert the first letter of each word in the selection to uppercase. From the menu, select Text | Convert | to Title case (Option + Control + U).

  • Opposite case: This will swap the case of each letter of the selection (for example, lowercase will become uppercase and uppercase will become lowercase). From the menu, select Text | Convert | to Opposite case (Control + G).

  • Spaces to Tabs: This will convert spaces to tabs (as defined in Tab Size). From the menu, select Text | Convert | Spaces to Tabs.

  • Tabs to Spaces: This will convert tabs to spaces (as defined in Tab Size). From the menu, select Text | Convert | Tabs to Spaces.

  • Transpose: This will output the selection backwards. From the menu, select Text | Convert | Transpose (Control + T).

How it works...

Most of these conversions should be self-explanatory. Some text conversions are shown in the following screenshot:

Tabs to Spaces (or Spaces to Tabs) is helpful if you decide later on to change to or from Soft Tabs. It's also useful if you want to play a practical joke on a colleague who is vehemently against either soft or hard tabs.

arrow left Previous Chapter
You have been reading a chapter from
TextMate How-To
Published in: Oct 2012 Publisher: Packt ISBN-13: 9781849693981
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}