PHP Tools for Visual Studio

Making PHP a first-class citizen in Visual Studio

What’s new?

Latest update (Download) of PHP Tools for Visual Studio integrates with Visual Studio Task List. Every comment in your project is processed. Comments containing predefined tokens like TODO: or @todo tags from PHPDoc comments are listed in Task List in category Comments.

This helps developers to keep overview of tasks and work in progress, helping to build more reliable code just by noting the comment in the source code.

Get social with us

Code Editor

  • Syntax coloring, Customizable Fonts&Colors read more
  • Smart Indentation
  • Document Format, Selection Format, Format on Paste, Format on closing brace and semicolon
  • Bookmarks
  • Code collapsing, #region/#endregion collapsing
  • Brace Matching, Matching symbol highlighting
  • Smart brace completion (Visual Studio 2013 and later)
  • Comment/Uncomment code
  • Full Unicode support and line ending configuration
  • PHP 5.5 support
  • Custom additional file extensions, e.g .php5, .phpt
  • PHPDoc support, autogenerating on /**, smart indentation
  • Find/Search replacement within projects and solutions. Supports regular expressions and wildcards.

IntelliSense

  • Integrated PHP manual, Go to Help (F1)
  • Complete help support using PHP manual and PHPDoc comments
  • Word Completion (Ctrl+Space)
  • Go To Definition (F12)
  • Function Assistance showing parameters, default values and description
  • Tool Tip Assistance showing summary on mouse hover
  • Dynamic context-aware IntelliSense for PHP
  • Autogenerated view for PHP manual functions, classes

Debugging

  • Xdebug support, Multi-session debugging, Remote debugging
  • PHP, JavaScript and .NET debugging at once
  • Automatic installation of PHP from Web Platform Installer
  • Supports built-in PHP server, IIS Express and custom server
  • Breakpoints, Conditional breakpoints
  • Step Into, Step Over, Step Out
  • Quick Watch support, Add To Watch
  • Edit values at run-time
  • Watch, Autos, Locals, Immediate Window
  • Call Stack Window
  • Text View, HTML View, XML View of variables value

Read more

Team Collaboration

  • Support for built-in version control providers
  • PHP Projects version controlling
  • Team Foundation Server, Git, SVN, and more
  • Seamless integration with the project system
  • Source Control Explorer
  • Work Items
  • Check-in History

HTML Editor in PHP files

  • Support for HTML, JavaScript and CSS in PHP files
  • Code colorization
  • Code collapsing
  • IntelliSense
  • Formatting, Smart Indentation, Real-time code validation
  • HTML schema validation
  • Support for add-ins like Web Essentials
  • Design View, Split View, Code View

Read more

Code Snippets (Ctrl+K,S and Ctrl+K,X)

  • Commonly used code fragments as snippets
  • Integrated in IntelliSense (Tab)
  • Automatically formatted snippets
  • Snippets with editable spans
  • Context-aware editable spans completion
  • Custom code snippets

Navigation Features

  • Class View organized by namespaces
  • Object Browser
  • Go to PHP manual page (F1)
  • Navigate To (Ctrl+,)
  • Navigation Bar with Classes and Functions within the script
  • Go To Definition (F12)

Error List

  • Realtime error detection
  • Underlines errors & warnings in code
  • Checks for Syntax errors
  • Checks for Semantic errors & warnings

PHPUnit Test Explorer

  • Listing all test methods within project
  • Debugging tests
  • Shows test result, duration, assertion or exception stack trace
  • Grouping tests by project, group, class or outcome
  • Running all tests or selected tests only
  • Seamless Test Explorer integration (Visual Studio 2012 and later)
  • PHPUnit included, no configuration needed
  • PHPUnit classes and methods IntelliSense
PHPUnit Test Explorer

Project System

  • Multiple projects withing solution
  • Run or Debug multiple projects at once
  • Configurable environment
  • Project referencing
  • Configurable project run options
  • standard MSBuild project system
  • Item templates, Project templates

Publish

  • Publish PHP project to file system, FTP, FTPS, SFTP
  • Publish before run
  • Incremental publish
  • Quick publish of selected files and directories
  • Support for opening FTP Web Site and uploading files On Save