May 21, 2012

How to Increment a List of Numbers on TextMate


Jane Buchanan

Jane Buchanan earned a master’s degree in computer science from the University of Virginia in 1991. Since then, she has worked as a journalist and copy editor for the “Daily Press” and the “Arlington Connection.”

updated January 08, 2012

]]>

When editing the source code of an application, you sometimes have to decrease or increase a list of numbers incrementally; for example, when editing a list of numerical variable values. Doing it by hand can take a long time and be quite tedious. While several other text editors for the Mac OS X operating system allow you to edit the source code of applications, Textmate incorporates a tool which automatically increments a selected list of numbers.

Difficulty:
Moderately Easy

Instructions

    • 1

      Launch Textmate and open the file that you wish to edit.

    • 2

      Select the list of numbers with your mouse.

    • 3

      Right-click on the list, hover your mouse over “Numbers” and select “Increment.”

    • 4

      Select either “Incremental increase” or “Incremental decrease” and type the number you want the program to add to each item in the list. Click on “OK.”

Read Next:

Comments

This entry passed through the Full-Text RSS service — if this is your content and you’re reading it on someone else’s site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: Donate to Wikileaks.

eHow – Relationships & Family How To’s