Domanda

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('');

È stato utile?

Soluzione

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

(Disclaimer: I'm the developer of Tincta)

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top