PHP Tools for Visual Studio do support CSS language in .php files. If there isn´t any, the issue must be somewhere else. You can find more information at http://www.devsense.com/doc/phptools/editor/html-editor.
Please send us email to email@example.com we´ll help you solve that.
I installed several extensions from this site and they all worked flawlessly in the background. EXCEPT for PHP Tools for VS. As soon as I started VS after installing I got an obnoxious message about registering, etc.
I immediately decided to uninstall PHP Tools so I went to Tools->Extensions and Updates and selected PHP Tools but guess what? The uninstall button doesn't work! The other extension's uninstall buttons work fine but PHP Tools uninstall button does nothing when I click it.
Now I have to search the web to figure out how to manually uninstall a VS extension.
I really appreciate PHP Tools for visual studio 2012 (i use the registered version of PHP tools), but there is something missing at my sense wich make me rate it 4 stars instead of 5. When i set my project as a PHP project, i can't update server on a per file basis wich is an issue for me when working on large projects. On other hand when setting my project as a web application, i can't add a new php document (or any document provided by php Tools) to the project but have to create a html document to rename it with php extension, then close it and reopen it.
Since 1.13 we do support publish on per file bases. And even publishing/updating whole projects should be faster now, especially if "Skip remote files check" is turned on.
About new php document template in Web Application. That is quite normal, as in VS you see only files in language you are using. e.g. you won't find Visual Basic templates there.
There are two other options what you could do: 1.) Ctrl+N > PHP > PHP script and then File | Move file.php to Your project.
2.) or nicer way. You can create your own project template. Just create php file and go to FILE | Export template ( http://msdn.microsoft.com/en-us/library/tsyyf0yh.aspx ) . Then you can find your php template in web application projects.
This is perfect. It feels like Microsoft shipped this together with VS, it integrates completely seemlessy into Visual Studio, from visual to technical. Setting up debugging is also not too hard. Finally PHP makes fun!
This is actually a feature which is turned on by default now. UTF8 BOM causes incorrect php page rendering. Anyway you can turn it back on in Tools | Options | Text Editor | PHP | Advanced | Override PHP files encoding .
Could you please write us on firstname.lastname@example.org or on http://support.devsense.com . We'll be happy to walk you through the process. Otherwise we also have debug troubleshooting section in documentation http://www.devsense.com/doc/phptools/debug/troubleshooting
Thank you for the feedback! - Could you please specify the situation when the program behaved in slow manner? We'll take a look into it (you can email us at email@example.com ). -F12 on include isn't conventional, because there are other methods to navigate to specific files. But we'll consider adding this feature in future. - You can uninstall the extension in same way as other VS extensions. Please follow the documentation on msdn: http://msdn.microsoft.com/en-us/library/ff852054.aspx - The extension is trial as specified in the description
when i install PhpTools.1.13.5416.msi, after choosing vs 2013 ,a dialog show that A DLL required for this install to complete could not be run, how to solve it ? my os is win 8.1 , ide is vs 2013 update 2
I've never experienced this, but it seems there is similar problem with other msi files. Could you please try what they suggest here to see if it has any impact? https://www.youtube.com/watch?v=KikshWVWhzg
Downloaded and installed extension on 2014-08-04 to try your software. The installation into VS 2010 was successfully completed but something is wrong: within the VS Extension Manager, the extension shows up as but is disabled. The date installed indicated is 7/21/2014 (even though I installed it on August 4 2014). The buttons to [ENABLE] and [UNINSTALL] are also both disabled.
OS: Windows 7 SP 1
PHP Tools for VS 1.13.5416
PrintScreen at http://snag.gy/Qnz5R.jpg
What's going on?
I've read your documentation on Installation/Activation at http://www.devsense.com/doc/phptools/installation/activation, but that was not helpful to me; when I start VS, I am not prompted with the option to begin trial or activate so the product is stuck on Disabled. Help please.
Thanks for trying our tools. Buttons Enable,Disable should be disabled since the extension can be uninstalled from Control Panel and not from Extension Manager.
To identify the issue, please send us your ActivityLog.xml file as described at http://www.devsense.com/doc/phptools/troubleshooting/activitylog-xml
Also you can try to reinstall the extension first.
I'm sorry I missed your reply because after waiting a couple of days, I stopped checking for it. I have just sent you the activity log you requested from a guerrillamail.com email address to firstname.lastname@example.org. Hope you can help.
Thank you for the log file. The extension has been disabled in your registry (or the installation process failed to enable it).
Did you try to reinstall the extension or repair it (in Control Panel / Programs and Features)?
Please check whether there is an entry in your registry (run regedit.exe), under HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\ExtensionManager\EnabledExtensions, with value "C:\Users\***\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\DEVSENSE\PHP Tools for Visual Studio 2010 ***\"
Thanks for trying to help. I tried to follow your instructions.
I uninstalled and reinstalled the add-on several times with no change. I find it strange that it shows install date of July 21 2014 even though I first installed it on August 4. Where is the July date from??
I ran the Repair several times from Control Panel/Programs and Features with no change.
I don't know whether I added the info to the registry correctly. Please look at screenshot http://snag.gy/zPnki.jpg. I did not create a new folder, but I added an entry to the ExtensionManager folder with name=EnabledExtensions and Data=C:\Users\Patrick\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\DEVSENSE\PHP Tools for Visual Studio 2010 1.13.5416\. This made no difference either. The tool still shows up as Disabled when I launch VS 2010
Your tool looks really interesting but it doesn't work on my machine. thank you for making a trial version available so I can discover this problem without paying for the product.
The registry has to look like this
Without this registry value, the extension won't load for sure.
Please let me know if there would be any more information about the issue. We'll try to find the cause of the issue and keep You informed in this thread.
Thanks again for your feedback!
Thanks for your feedback concerning publishing on a per file basis in v1.13, but still have a little issue with profiles. When i change publishing profile (to switch between production site and preproduction site) the change is taken into account only after a global publish has been done on the new selected profile. Save the profile selection change has no incidence on it.
Do you set breakpoints directly in js files or in embedded code in php files? Do you know the version which was working for you? And what VS version are you using? If you could send us email(to email@example.com) with this information we'll investigate this.
Thanks for your post! We're currently focusing on general purpose PHP features, as refactoring, improved Intellisense, ... However support for framework templates is next on the line.
Thanks so much!
I have downloaded php tools few days ago, but when I run my solution in vs2012 it shows a dialog to install PHP for IIS. When command prompt is launched, an error is shown in red and the window closes.
It also occurs in vs2013. Have you got any suggestion?
try to run the command to install PHP manually. First start command prompt as Administrator and then run:
webpicmd.exe /Install /Products:XDebugForPHP54ForIISExpress /Feeds:""http://api.devsense.com/webpi/1.0/webproducts.xml"" /AcceptEula && pause
You'll have chance to read the error. Please copy it here or send it to firstname.lastname@example.org, we'll help with this issue.
Hi, I had purchased a personal license which is valid till november 2014. It was for VS2013. Today I reinstalled windows and VS2013 and upgraded to Visual Studio 2013 Update 2. However, now I am unable to activate the product. Its getting installed nicely but activation process fails. A quick response will be great as I have a project to complete.
You can select server in project properties (PHP 5.4+ builtin, IIS Express, Custom URL). For regular IIS, you have to select Custom URL.
Then just hit Ctrl+F5 to run the project without debugging.
Anyway it all requires some PHP to be installed on your system, otherwise you'll be asked to do so.
I have running it on WAMP with debugging enabled.
1. First, you need to add the xdebug PHP addon (http://xdebug.org/download.php) to your WAMP folder. Depending on your WAMP server build, you need the corresponding x86 or x64 xdebug built for the 5.5 PHP version (if you're using the latest WAMP). Make sure you download the ThreadSafe (TS) version!
2. Put the downloaded php DLL into WAMP\bin\php\php5.5.12\ext
3. Modify the line zend_extension in your php.ini to point to the dll in an absolute file path, like zend_extension="C:\Wamp\bin\php\php5.5.12\ext\php_xdebug-2.2.5-5.5-vc11-x86_64.dll" in my example.
4. Open your PHP project in VS and make sure that in the properties of your project, you have "Use PHP built-in Web Server" selected and pointing to localhost, with auto-assigned port.
5. Start the project and follow the assistant for your custom running server to select the WAMP php.exe and start debugging :)
So, today is 5/7/2014 and I see PHP Tools was just updated yesterday on 5/6/2014 with Version 1.12.5187.
So, I downloaded it.
While it was downloading, I go into Control Panel to remove the old version that I installed last month. It also says it is Version 1.12.5187.
Was the Version number not updated with this last change?
Yesterday we've just updated a description on Visual Studio gallery, not the actual binaries. 1.12.5187 is the actual latest. You can see detailed update history on our page http://www.devsense.com/products/php-tools/download
Very satisfied with PHP Tools so far, but I'd like to be able to use TypeScript within my PHP projects. I see no template available for it from the add file dialog within my PHP projects. I tried simply renaming a .js file to .ts, and while I do get intellisense and syntax highlighting for it the file doesn't compile on build.
I'd also like to be able to use SASS within PHP projects. Luckily though simply renaming a .css file to .scss was enough to SassyStudio to pick up on it and do it's job. A template in the add file dialog would be nice though.
Thanks for the question. I'm glad you're satisfied with PHP Tools.
We're planing on supporting typescript in PHP projects very soon. ( http://support.devsense.com/viewtopic.php?f=21&t=1227 )
We'll explore possibility of adding SASS template as it has to be available only when some service is ready to handle those files.