Snippet Functions

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

Snippet Functions

Postby BladeMF » December 14th, 2016, 1:10 pm

Guys,

I noticed that you have developed custom snippet functions. What functions are there?
Welcome to the zone where normal things don't happen very often.
BladeMF
 
Posts: 346
Joined: October 10th, 2012, 7:14 am

Re: Snippet Functions

Postby Jakub Misek » December 16th, 2016, 4:46 pm

What do you mean exactly?

In VS there is a concept called "custom snippet function" making possible to programmaticly complete editable fields of our snippets. So e.g. if you insert a "function" snippet, the name of the function is always increased by one (Foo1, Foo2, ...) which is implemented using custom snippet functions.

Any other idea for this feature?
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: Snippet Functions

Postby BladeMF » December 16th, 2016, 10:07 pm

Jakub Misek wrote:What do you mean exactly?

In VS there is a concept called "custom snippet function" making possible to programmaticly complete editable fields of our snippets. So e.g. if you insert a "function" snippet, the name of the function is always increased by one (Foo1, Foo2, ...) which is implemented using custom snippet functions.

Any other idea for this feature?


This is what I am talking about. What custom functions did you create? I need a function which turns setVisible to SetVisible, so I can put "get" in front of it (property generator snippet).
Welcome to the zone where normal things don't happen very often.
BladeMF
 
Posts: 346
Joined: October 10th, 2012, 7:14 am

Re: Snippet Functions

Postby Jakub Misek » December 19th, 2016, 12:46 pm

sample?
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: Snippet Functions

Postby BladeMF » December 19th, 2016, 12:48 pm

Jakub Misek wrote:sample?


You want to see the snippet?
Welcome to the zone where normal things don't happen very often.
BladeMF
 
Posts: 346
Joined: October 10th, 2012, 7:14 am


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 37 guests

cron

User Control Panel

Login

Who is online

In total there are 37 users online :: 0 registered, 0 hidden and 37 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 37 guests