code autocomlete (formelly "code templates") |
|
You can easily get the same behaviour in PhpEd. You need to create a "code template". To get to the code templates, go to the Tools menu, Settings. Then on the left hand side of the Settings dialog box, look for Editor->Code Templates. Click on Add to add a new one for you. The "Name" is what you will use as the shortcut. I've changed mine so much I dont remember what PhpEd ships with, but one I have that I use alot is for if else statements. I have the name set to 'ifel' and the Template body to
Then in the editor, I type in 'ifel' and then press Ctrl+j to activate the code template. |
||||||||||||||
|
|
2 gilzow: I know how to create and use code templates I just want to add my custom language (i.e. MyPHP) with custom set of templates. And assign SPACE in place of Ctrl+J. That's it.
|
||||||||||||
|
Site Admin
|
You can't assign space for it, otherwise you'll not be able to enter spaces at all. IT will show you popup with templates each time you press space. I'd recommend you to think about different shortcut if you don't like Ctrl+J. |
||||||||||||||
_________________ The PHP IDE team |
|
OH. My apologies. I misunderstood. I dont think you would want to assign the space as your shortcut though.... How would you be able to enter the space character in your code? The IDE would continuously think you were activating the shortcut. The templates are stored in a file though I have forgotten which one. I can look later. Though I bet dmitri would know which one off the top of his head. |
||||||||||||||
|
|
That's why I described how EditPlus works. Maybe it "trigger" first word in a line + space, maybe it works like autocorrection in PhpED. Closed source, i don't know Ok, is it possible to enter multiline string in autocorrection feature in PhpED? |
||||||||||||||
|
Guru master
|
+1 for multi-line autocorrection.
|
||||||||||||
|
code autocomlete (formelly "code templates") |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by