Intellij Idea Phpstorm



Tips & Tricks

Browse other questions tagged intellij-idea phpstorm simultaneous pair-programming or ask your own question. The Overflow Blog Introducing The Key. Podcast 326: What does being a “nerd” even mean these days? Featured on Meta Stack Overflow for Teams is now free for up to 50 users, forever. All of the functionality of our lightweight IDEs can be found within IntelliJ IDEA (you need to install the corresponding plug-ins from the repository). It includes support for all technologies developed for our more specific products such as Web/PhpStorm, RubyMine and PyCharm.

  1. PhpStorm is an IntelliJ Platform-based product. Plugins for PhpStorm are developed in Java using the Ultimate edition of IntelliJ IDEA. The PsiViewer plugin is also recommended. This page describes configuring plugin projects targeting PhpStorm.
  2. Provides support for editing the OpenAPI files (formerly known as Swagger). Features Supports versions 2.x and 3.x of OpenAPI.

How To Use Intellij Idea

Continuing our series on how2pro with IntelliJ IDEA, today we’d like to tell you more about a good old feature that can turn out to be a real lifesaver: Local History.

Unlike version control systems, which only keep track of the differences made between commits, local history offers much more. It automatically records your project’s revisions triggered by various events as you edit code, run tests, deploy applications, and so on.

Acting as your personal version control system, local history lets you restore deleted files, bring back separate changes, or roll back to any state of a file even if no version control is enabled for your project yet, or if an unwanted change was made after your last commit. It may also serve as a recovery source if your PC restarts unexpectedly before you can take any action.

The default retention period for local history is 5 days, but that’s configurable.

Restore changes

Let’s imagine you had made a ton of changes to a file since your last commit before you realized you’ve deleted a meaningful chunk of code. The undo action can’t help you here, because that change is too far away and you’ll be forced to discard other changes if you use it.

Phpstorm Vs Intellij Idea

Local history to the rescue! Right-click anywhere in the editor and choose Local History | Show History or press Ctrl+Shift+A on Windows and Linux or ⇧⌘A on macOS and then type ‘local history’.

What you’ll see is a list of all saved revisions of the current file with a timestamp on the left, and the diff viewer on the right which displays the differences between each revision and the current state of the file.

Locate the piece of code you want to restore and simply click the chevron button (») to copy it from the left pane.

Restore deleted files

If you’ve accidentally deleted a file that was not under version control, select the folder that contained that file in the Project view and invoke local history for that folder.

Then select a revision that contains the file you want to restore, right-click that file, and choose Revert Selection:

You can learn more about local history from our documentation.

Local history is available both in IntelliJ IDEA Ultimate and in the free Community Edition. Download IntelliJ IDEA now to make sure you never lose a single line of code!

Happy developing!

The Lightning-Smart PHP IDE

PhpStorm deeply
understands your code.

Intellij Idea Phpstorm

Major frameworks support

PhpStorm is perfect for working with Symfony, Laravel, Drupal, WordPress, Zend Framework, Magento, Joomla!, CakePHP, Yii, and other frameworks.

All the PHP tools

The editor actually 'gets' your code and deeply understands its structure, supporting all the PHP language features for modern and legacy projects. It provides the best code completion, refactorings, on-the-fly error prevention, and more.

Front-end technologies included

Make the most of the cutting edge front-end technologies, such as HTML 5, CSS, Sass, Less, Stylus, CoffeeScript, TypeScript, Emmet, and JavaScript, with refactorings, debugging, and unit testing available. See the changes instantly in the browser thanks to Live Edit.

Built-in developer tools

Perform many routine tasks right from the IDE, thanks to the Version Control Systems integration, support for remote deployment, databases/SQL, command-line tools, Docker, Composer, REST Client, and many other tools.

PhpStorm = WebStorm + PHP + DB/SQL

All the features in WebStorm are included into PhpStorm, with full-fledged support for PHP and Databases/SQL support added on top.

Intelligent Coding Assistance

Hundreds of inspections take care of verifying your code as you type, analyzing the whole project. PHPDoc support, code (re)arranger and formatter, quick-fixes, and other features help you write neat code that is easy to maintain.

Smart Code Navigation

Be the master of your codebase thanks to the efficient, lightning-fast navigation features. The IDE understands where you want to go and gets you there instantly.

Fast and Safe Refactoring

Refactor your code reliably with the safe Rename, Move, Delete, Extract Method, Inline Variable, Push members Up / Pull members Down, Change Signature, and many other refactorings. Language-specific refactorings help you perform project-wide changes in a matter of clicks, which can​ all be safely undone.

Easy Debugging and Testing

Intellij Idea Phpstorm

PhpStorm is renowned for its zero-configuration Visual Debugger, providing extraordinary insight into what goes on in your application at every step. It works with Xdebug and Zend Debugger, and can be used both locally and remotely. Unit Testing with PHPUnit, BDD with Behat and profiler integration are all also available.

Idea

What’s new in PhpStorm 2021.1

Code With Me for pair programming

Code With Me, a new JetBrains service for collaborative development and pair programming, is now bundled with PhpStorm. It allows you to share the project you currently have open in your IDE with others and work on it together in real time.

Built-in preview for HTML and PHP files

With PhpStorm 2021.1, you can get a live-edit experience out of the box, there is no need to set anything up. It works for HTML and linked CSS, JS files, as well as for simple PHP files which will be rendered with a local PHP interpreter.

New inspections to help detect bugs

Intellij

PhpStorm adds 20+ new inspections to help prevent possible bugs at early stages. It also comes with quick-fixes to make adjustments to code and small refactorings with one use of Alt+Enter.

Meet the PhpStorm community

@geeh @phpstorm I'm hooked mate. I've been so productive lately it's silly. Keep up the great work.
@phpstorm's code completion is incredibly useful.
@phpstorm is magical... in a good way. I find myself saying 'oh that's convenient' over and over.
If you are developing in PHP and are not using PhpStorm, you are working too hard.
'I'm so spoiled by PhpStorm!'

Join over 600,000
happy PhpStorm users
worldwide!





Comments are closed.