Tag Archives: textmate

Sublime Text: Disable Auto Complete on Return / Enter key

Recently I’ve been trying to switch from TextMate to SublimeText. For the most part it is an easy transition, but there are a few things that cause me hangups. One of them is how the autocomplete works. In Text Mate, you can use enter / return to get a new line after typing something like a CSS or LESS rule. In SublimeText, if your CSS, LESS, SASS rule matches an auto complete snippet, pressing enter (or return) will cause that to be autocompleted. Fortunately you can edit your Preferences.sublime-settings file and add the following rule to keep autocomplete on but disable enter / return from autocompleting: “auto_complete_commit_on_tab” : false

Posted in Mac, Software, Tech Tips | Tagged , | 1 Comment

Textmate: Toggle Insert Anywhere

When I click somewhere on a line of text – in the empty space part after content – the cursor moves to the exact position I’ve clicked rather than jumping to the end of the line like every other editor seems to do. This is how to reset this behavior and fix Textmate – that is, to click and have the cursor move to the end of that line and not to the actual position you click with the mouse. This is caused by Freehand Editing mode being turned on. Here are the two editing modes that Textmate allows, and here is how to enable / disable both of them: Freehand Editing (Edit » Mode » Freehand Editing) Allows the caret to move past end of line and inside tab characters. It is also possible to place the caret unrestricted by line endings (and tabs) by holding down ? while placing the caret with the mouse. Overwrite Mode (Edit » Mode » Overwrite Mode) This lets you type over existing text

Posted in Mac, Software, Tech Tips | Tagged , , , , , | 1 Comment

Textmate: Select Balanced HTML Tag

If you’re trying to select the balanced HTML tag or Enclosing Tag in Textmate there is an article here that talks about it. http://subtlegradient.com/articles/2007/11/15/select-balanced-html-tag.html Unfortunately the article does not give a link to download. Try this out instead:   https://github.com/subtleGradient/SelectStuff.tmbundle How to install your new textmate bundle? Basically just extract the file you download and then go into each of the folder and double click on the tmbundle files. http://manual.macromates.com/en/bundles Also check out the HTML5 bundle: https://github.com/subtleGradient/HTML5.tmbundle

Posted in Tech Tips, Web Development | Tagged , , , , | 1 Comment