"New File" Template

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

"New File" Template

Postby CFI » December 19th, 2012, 8:58 am

Hi,

is it possible to edit the file template which is loaded when adding a new PHP file, so that we can include our header and set the encoding and line endings we want?

regards
CFI
 
Posts: 66
Joined: December 13th, 2012, 1:29 pm

Re: "New File" Template

Postby Jakub Misek » December 19th, 2012, 3:02 pm

Hi,

There is built-in Visual Studio feature for this.

Create/modify your .php file within a PHP project. And go to File -> Export Template. Choose item template and continue thru the wizard.

Your new item should appear in New Item dialog (right click on Project -> Add -> New Item).

Let me know if it works for you. Thanks!
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: "New File" Template

Postby CFI » December 19th, 2012, 3:11 pm

Works - thanks.
CFI
 
Posts: 66
Joined: December 13th, 2012, 1:29 pm

Re: "New File" Template

Postby Jakub Misek » December 19th, 2012, 3:39 pm

Great! If you would have anything else, or if you have a feature suggestion, please feel free to give us feedback.

Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 48 guests

User Control Panel

Login

Who is online

In total there are 48 users online :: 0 registered, 0 hidden and 48 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 48 guests