Getting to know the IDE The Visual Studio main window is divided into several areas - menu bar, status bar, editor area, side panel containing the Solution Explorer, and various toolbars. All the positions can be changed. The following image describes the default layout. When you launch Visual Studio, you are welcomed with the Start Page. This allows you to open recent projects or create new ones quickly. When a project is opened, you can see the files that are a part of the project in the Solution Explorer.
The Solution Explorer allows you to manage, search and open files, their properties and the project properties. The editor area contains opened files. It allows you to see and modify the content, and take advantage of advanced IntelliSense features, navigation features, syntax highlighting, live error detection and more. First PHP project Most of the features in Visual Studio work within the context of a project. Debugging, IntelliSense, testing or configuring web server depends on a PHP project. The project corresponds to a single application or a library, it can be bound to a source control or configured to publish modified files onto a remote server.
Projects in Visual Studio work with a local copy of your files. To push them on a server, you have to deploy your files - either by configuring automatic publish or by your own. There are several ways to create a new project in Visual Studio by: • Creating a new PHP project from scratch. • Creating a PHP project around existing files. • Importing existing files into a project. New PHP Project from Scratch An empty PHP Project is the simplest way of getting started with PHP Tools. Go to 'Menu| File| New| Project' and look for 'PHP' group.
Apr 22, 2018 PHP Tools for Visual Studio - gateway. I clear the regedit of this tools, and License key never show when open the VisualStudio 2013. After 1 hour of searching i didn't found a patch for PHP Tools v1.24. (Visual Studio 2017), then i decided to make mine. Never had such a great debugging experience with PHP and Visual Studio. God thanks there is PHP tools, so I have all my favourite languages within my favourite IDE! Marco Klein Student.
Find the project template you need and confirm. Additional files and directories can be added in various ways: • In Menu or Solution Explorer| Project| Add New Item • Drag & Drop from Windows Explorer into Solution Explorer • Enabling Show All Files in Solution Explorer to see all the files physically present within the project directory and including them into the project New Project in an Existing Folder If you already have files in a local folder, you can create PHP Project in that folder with all the files included. Navigate to Menu| File| New| Project From Existing Code. (Note availability of this feature depends on Visual Studio edition) and walk through the wizard steps. Importing Local Files to a Project If you already have a project, you can add existing files. See New PHP project from scratch for more information.
Editing a PHP File PHP Tools provides Visual Studio with a smart editor of PHP files. This allows you to work with great overview of your code, taking advantage of navigation bar, outlining, syntax highlighting; even with PHP, HTML, JavaScript or CSS mixed together, smart auto-completion Ctrl+Space taking into account the current code context, tooltip assistance, help integration F1, jump to definition F12 and live error underlining helping you to build error-free code. Built-in code snippets help you to write code fast avoiding typos. You can insert a code snippet Ctrl+K,X like new function body, for loop, try/catch construct and more to speed up your development. Newly inserted snippet is automatically formatted and cursor position moved directly inside the new code so you can type your code instantly. Moreover selected area of a code can be surrounded by a snippet Ctrl+K,S to avoid the need of copy-pasting and other refactoring.