Subscribe to our feed

Symfony Experts

Symfony Experts
If you have an urgent question for a symfony-related issue, this is the place to ask.


Stack Overflow

The old fashioned way


May 15, 2007 – 4:32pm TextMate Tip of the Day

  • Hit control-shift-v to validate PHP syntax.

At first I was skeptical about TextMate and didn’t want to fall into all the hoopla surrounding it… how are people so obsessed with their text editors to the point where they debate them to death? Most people wanted to hop on the Rails bandwagon, saw the screencast where DHH uses TextMate, and proceeded to download it. At least that’s what I did.

Now, after using it for months, there is no way I could work without it. I learn new tricks every day just by searching for features I think would be nice to have—Most often those features are already there.

The feature I just discovered today was the “Validate Syntax” for PHP documents. Usually I write some code, then go back into my browser and hit reload to view my changes, only to be stopped dead in my tracks with a syntax error. (Side note: if you are editing an HTML document you can automatically refresh current browsers from within TM by hitting apple-R.) Instead of waiting for your source to be loaded in through your browser, just hit control-shift-v to see where you left off the semicolon which you were so good at remembering until you started coding in Ruby, and continue on your merry way.

Posted by in  Web Development

Comments are closed.