How to disable highlighting whitespace at end of each line in Textmate 2? - textmate

In Textmate 2 (I currently have version 2.0 beta 6), I notice that the whitespace at end of each line is always highlighted. See screenshot below (the red bands are highlighted whitespaces).
How do I disable this? I have looked in the preferences, but couldn't find a setting. I also checked and found that this is not theme specific (whichever theme I select, this highlighting is shown).

If you have the Whitespace bundle under the Bundle Editor; select it, then Language Grammars disable Trailing Whitespace by unchecking Enable this item.
As the OP commented, you may have to restart Textmate for this to take effect.

Related

How do I insert a literal tab character?

I am editing a Makefile in XCode. How do I actually insert a tab character, ASCII value 9? If I press TAB, it inserts 4 spaces, and make complains because decades ago the creator of make had a handful of users and didn't want to change the program to not require literal tabs because it would break backwards compatibility or something.
Normally when editing a Makefile I just copy and paste an existing TAB character, but with a new clean one, I cannot do this.
In Xcode 6.4, at least, you can enter a literal tab with Option-Tab. This seems to work regardless of the indentation settings.
You could just change your editing preference is Xcode to use tabs while editing a makefile
Easier than messing about moving to other editors and pasting literals.
close the file in Xcode
open the file in TextEdit
be sure to check the "Ignore rich text commands" at the bottom of the open dialog
position the cursor at the beginning of a line and push TAB
close TextEdit
open the file in Xcode
select "Show Invisibles" from the "Editor" menu
note that ironically, the TABs are not displayed
however, spaces are displayed, which allows you to tell which lines start with tabs
copy the tab character as needed
If you ever meet that guy who that who thought that starting a line with a TAB was a good idea, slap him upside the back of the head, and slap him hard!!!
I've taken to opening a TextEdit, placing a TAB there, then copying + pasting it into XCode.

Show Indent Guide Lines In Xcode

Coming from a background using Visual Studio and Notepad++ I'm used to the indent guides which help to visually enhance sections of code where the curly braces are used,
Xcode (No indent guides)
Visual Studio (Nice tidy indent guides)
As you can see from the images above sometimes there are sections of code where multiple levels of curly braces are open and it gets messy without any indent guides.
Are there any options or plugins that will allow xcode to display the indent guides in between sections of code? Like the VS2010 sample?
In Xcode 10, if you press Command and hover over the structure it will show what is desired. It is not permanent but it helps.
Xcode doesn't have this feature (not that I'm aware of) , but it has a (kinda) similar one. If you look closely in a method with a few loops or if structures, each structure gets a black tint on the left side of the editing area (right next to the line numbers).
You can collapse or expand the functions as needed.
I've been searching the same but the most similar solution on Xcode 11 is shows invisibles

Removing empty whitespace at the end of a line of text in Aptana 3

In Aptana 2 there was this tidy thing or something like that that you could setup to remove empty whitespace from the ends of lines after saving. You could set it to preserve empty lines and so on. Can this be done in Aptana 3 because I'm not seeing that ability and if it is there I can't find it.
Check out AnyEdit for Eclipse at http://andrei.gmxhome.de/anyedit/
It does what you are looking for and adds some nice conversion tools for characters and spaces.
I use it for web stuff (with Aptana), Android and App Engine. Works great with all of them.
When installing from the URL on that site, just select your Eclipse version and pick AnyEditTools.
There is a JIRA ticket currently filed against it: http://jira.appcelerator.org/browse/APSTUD-814. You could watch the ticket for progress or add your voice there.
Turns out this was implemented in Aptana Studio 3 in 2012, go to Preferences -> Aptana Studio -> Editors
and in there enable Remove trailing whitespace characters. Then when you save a file you should see the whitespace disappear.

Tab markings in VS2010

In some of my text editors, there's a feature that draws vertical lines down the tab stops which makes it a breeze to ensure that braces are matched.
Does VS2010 have such a feature?
You can use the AllMargins VS2010 extension to get this functionality

Hide linefeed and tab characters in xcode editor

As can be seen in the screenshot the editor in xcode has started to show linefeeds and tab characters, normally invisible characters. I can't for the life of me find a way to hide them again and i have no idea why they started to show. Any ideas?
Solved it, it was the bracket matching xcode plugin that caused it. Removing that restored order in the universe and xcode.

Resources