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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

migrated from stackoverflow.com Jan 16 '11 at 18:22

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

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

 
discard

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