Auto build constructors, getters and setters.

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

Auto build constructors, getters and setters.

Postby sawebdev » February 15th, 2014, 6:47 pm

I'm trying out the php tools and really like it, other than it doesn't seem to automatically build a constructor or getters and setters like netbeans has. Would this be hard to implement?
I also emailed devsense the other day asking if there was a discounted price for students... Haven't received a response yet...
sawebdev
 
Posts: 25
Joined: February 15th, 2014, 6:44 pm

Re: Auto build constructors, getters and setters.

Postby Miloslav Beno » February 16th, 2014, 3:49 pm

Hi,

Thanks for suggestion. I guess you mean to add snippets for these three constructs? That's quite easy to implement, we'll add it in one of the future updates.

Thanks again!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Auto build constructors, getters and setters.

Postby sawebdev » February 16th, 2014, 7:25 pm

This link https://netbeans.org/kb/docs/php/editor ... generators is what I'm talking about. :) but ya, sounds like you have the idea. :)
sawebdev
 
Posts: 25
Joined: February 15th, 2014, 6:44 pm

Re: Auto build constructors, getters and setters.

Postby Miloslav Beno » February 16th, 2014, 8:19 pm

I see! That's not just a snippet, but something as context sensitive snippet. That might take a little longer, since there isn't such a concept in Visual Studio by default.

At least for now you can just use function snippet which works fine, you'd just need to write the name (__constructor, __get, __set ).
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Auto build constructors, getters and setters.

Postby sawebdev » February 16th, 2014, 9:57 pm

Alright. No rush, just thought it would be nice, because it does save a lot of time, especially when following a professor who uses netbeans and uses that function. :)
Thanks
sawebdev
 
Posts: 25
Joined: February 15th, 2014, 6:44 pm

Re: Auto build constructors, getters and setters.

Postby sawebdev » February 19th, 2014, 11:19 pm

Another thing that I'm wondering if it would be possible to add... Happened to notice that breakpoints in javascript don't stop the debugger... would be a nice addition :)
sawebdev
 
Posts: 25
Joined: February 15th, 2014, 6:44 pm

Re: Auto build constructors, getters and setters.

Postby Jakub Misek » February 20th, 2014, 3:45 am

Breakpoints in JS should work when debugging in IE.
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: Auto build constructors, getters and setters.

Postby sawebdev » February 20th, 2014, 6:49 pm

I doesn't seem to be working for me, though might that be because I'm using jquery and ajax?
sawebdev
 
Posts: 25
Joined: February 15th, 2014, 6:44 pm

Re: Auto build constructors, getters and setters.

Postby Miloslav Beno » February 20th, 2014, 11:04 pm

jquery and ajax shouldn't be an issue here. What version of PHP Tools do you have? Since 1.10 Javascript debugging is turned on by default when Internet Explorer is used.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Auto build constructors, getters and setters.

Postby sawebdev » February 20th, 2014, 11:39 pm

I'm using 2013 and VS 2013
sawebdev
 
Posts: 25
Joined: February 15th, 2014, 6:44 pm

Next

Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 28 guests

User Control Panel

Login

Who is online

In total there are 28 users online :: 0 registered, 0 hidden and 28 guests (based on users active over the past 5 minutes)
Most users ever online was 511 on April 27th, 2024, 10:11 pm

Users browsing this forum: No registered users and 28 guests