I know that I can double-click a column header with my mouse, but is there a keyboard shortcut to fit a column to the text width?

up vote 11 down vote accepted

Alt + O, C, A one after the other.

  • 2
    Ctrl + Spacebar first. – snitzr May 27 '11 at 17:56
  • 3
    If you don't have the correct cell selected you can select the whole row with Ctrl + Spacebar as snitzr mentioned. – Mr Alpha May 30 '11 at 15:07

Select all by pressing Ctrl+A. Then press Alt+H, O, I.

  • This answer is the better one now because it doesn't come with a warning that your shortcut is old, and it shows you where the new menu items actually are. – Noumenon May 9 '17 at 16:55

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.