Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In TextMate, is it possible to define the default size and position for new windows? How?

share|improve this question

migrated from Jan 16 '11 at 18:22

This question came from our site for professional and enthusiast programmers.

3 Answers 3

It only remembers the last open window's position and size. If you need a specific size and position, I would write an applescript.

share|improve this answer

Open ~/Library/Preferences/com.macromates.textmate.plist and look for the entry named OakDocumentWindowFrame. There you can adjust the width and height for new windows.

share|improve this answer

You can set the default window size by running these commands in the terminal.

For Textmate 1:

defaults write com.macromates.textmate OakDocumentWindowFrame -string "{{0, 0}, {1440, 900}}"

For Textmate 2:

defaults write com.macromates.TextMate.preview DocumentControllerWindowFrame -string "{{0, 0}, {1440, 900}}"

For both, {0, 0} represents {left position, bottom position), and {1440, 900} represents {width, height}. These values will probably be overwritten by TextMate when it decides to redefine the default window size (as determined by the size of the last closed window (?)).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.