Question

Coding PHP on a Mac using TextEdit. It's always annoying to have to type the same lines of code that I use over and over (Ex: MyClass::myLocalizedString('Hello');).

Anyone know of a useful editor for Mac that can save me time by allowing me to predefine a string and bind it to a hotkey combination?

Ex: Cmd+1 pastes the text MyClass::myLocalizedString('');

Was it helpful?

Solution

Tincta Pro also has a code-snippets feature with shortcut expansion.

(Disclaimer: I'm the developer of Tincta)

OTHER TIPS

I think there are plenty of choises. For instance, you can use Keyboard Maestro to create a hotkey or use TextExpander for short snippet. I think you might be able to create this with Quicksilver too, but for this I'm not sure.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top