Block Indent in Text Wrangler

15,845 views
Skip to first unread message

MacNewbie

unread,
Mar 16, 2011, 6:31:26 PM3/16/11
to TextWrangler Talk
I'm new to the Mac and TextWrangler. I'm writing code and would like
to
be able to do block indent feature like in other editors I've used
before. I've
tried using the key combo for Shift Left and Shift Right, but
unfortunately
for me, nothing happens. I'm wondering if I'm doing something wrong.

I found a similar question from back in 2009, where the questioner was
asking a very similar thing. The responder was a bit of a jerk when
replying,
and the funny thing was that when I tried using Shift Right & Left,
the default
for TW, as the responder suggested, as I stated above, I had the same
problem.

You don't need to respond in a condescending manner to get me to
listen. I
just have not used this piece of software much, and the help is a bit
sparse.

Thanks ahead of time.

Rich

MacNewbie

unread,
Mar 16, 2011, 6:31:47 PM3/16/11
to TextWrangler Talk

Thomas Fischer

unread,
Mar 17, 2011, 5:18:23 AM3/17/11
to textwr...@googlegroups.com
Hi Rich,

Am 16.03.2011 um 23:31 schrieb MacNewbie:

> I'm new to the Mac and TextWrangler. I'm writing code and would like
> to
> be able to do block indent feature like in other editors I've used
> before. I've
> tried using the key combo for Shift Left and Shift Right, but
> unfortunately
> for me, nothing happens. I'm wondering if I'm doing something wrong.
>
> I found a similar question from back in 2009, where the questioner was
> asking a very similar thing. The responder was a bit of a jerk when
> replying,
> and the funny thing was that when I tried using Shift Right & Left,
> the default
> for TW, as the responder suggested, as I stated above, I had the same
> problem.

I'm not quite sure which feature you're looking for.
I use the "shift left" and "shift right" commands in the text menu and have attached the keyboard shortcuts ctrl-arrowLeft and ctrl-arrowRight to them. An alternative might be (p. 177 in the manual):

Allow Tab Key to Indent Text Blocks
When this option is on, you can press the Tab key to invoke the Shift Right command, or Shift-Tab to invoke the Shift Left command; this may be useful for those accustomed to Windows editing key behavior. When this option is off, pressing Tab will insert a tab character in the normal manner. This option is off by default.

This can be activated in the "Editing: Keyboard" pane in the preferences.

Hope this helps!
Thomas

Eric A. Booth

unread,
Mar 16, 2011, 11:55:23 PM3/16/11
to textwr...@googlegroups.com

Command+] to indent a highlighted block of text (or conversely Command+[ to unindent)

- Eric
__
Eric A. Booth
Public Policy Research Institute
Texas A&M University
ebo...@ppri.tamu.edu
Office: +979.845.6754

> --
> You received this message because you are subscribed to the
> "TextWrangler Talk" discussion group on Google Groups.
> To post to this group, send email to textwr...@googlegroups.com
> To unsubscribe from this group, send email to
> textwrangler...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/textwrangler?hl=en
> If you have a feature request or would like to report a problem,
> please email "sup...@barebones.com" rather than posting to the group.


Rodrigo Hernández

unread,
Aug 16, 2013, 2:23:47 AM8/16/13
to textwr...@googlegroups.com
Hi,
in Preferences, click on "Keyboard" menu,  check "Allow Tab key to indent text blocks"

... when you have a selected text block,
press: Tab   to indent right,
press: Shift + Tab   to indent left.

Regards,
Rodrigo

Clint Mallon

unread,
Jan 14, 2014, 9:21:24 PM1/14/14
to textwr...@googlegroups.com, rodrigohe...@gmail.com
Hello All,

I've attached a few screenshots to illustrate better but I think I've found the solution:

Image 1: This makes the second line of any indented text, indented. This is similar to the way indenting bullet points works within emails and Word. I personally feel that selecting this option is a necessity within TextWrangler.

Image 2: Just as previously stated by other contributors, this allows you to highlight text and hit Tab to indent right and Shift + Tab to indent left. This is redundant though being that command + ] indents highlighted text right and command + [ indents highlighted text left by default.

*If you place the cursor in front of any character without highlighting, hitting Tab indents right and Delete indents left.

Image 3: Selecting "Window width" is another feature I wanted to add being that I feel it's a necessity within TextWrangler as well.

Hope this helps.

Cheers!
Image 1.png
Image 2.png
Image 3.png

Thomas Fischer

unread,
Jan 15, 2014, 3:58:49 AM1/15/14
to textwr...@googlegroups.com
Hello,

just for the record:

Image 2: Just as previously stated by other contributors, this allows you to highlight text and hit Tab to indent right and Shift + Tab to indent left. This is redundant though being that command + ] indents highlighted text right and command + [ indents highlighted text left by default.

This is not quite redundant if you're using a German keyboard since here "command + ] " translates into "command + option + shift + 6". You wouldn't want to do that every time you want to indent something (I set the keyboard shortcut to "ctrl + arrow right").

Best
Thomas

Roberto Matthews

unread,
Jan 18, 2016, 9:39:47 PM1/18/16
to TextWrangler Talk, rodrigohe...@gmail.com, clint...@gmail.com
Clint!!!

Thanks so very much, with these pics you've helped me make TextWrangler useable!  It might seem like the tab situation (RE: Image #1) is a small problem, but it makes navigating my code so much better.  Thanks again!!!
Reply all
Reply to author
Forward
0 new messages