BRIEFS logo BRIEFS

55: Cleaning System Cache

05/20/2016 , 1m, 14s

During a recent upgrade of the IDE it seems like the caches used for providing code completion got corrupted. This little tip will help you fix that.

Also applies to: WebStorm

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

54: Security update for all IntelliJ-based IDEs

05/11/2016 , 1m, 14s

An important security update for all IntelliJ-based IDEs. Upgrade ASAP.

Also applies to: WebStorm

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

53: News

04/26/2016 , 1m, 9s

JetBrains announced PhpStorm 2016.1.1 EAP available for immediate download. The recording from last weeks webinar What's New in PhpStorm 2016.1 is available.

Also applies to: N/A

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

52: Announcement

04/22/2016 , 1m, 4s

Releasing an episode almost every weekday has been loads of fun. Even more exciting is to see the responses from my listeners. But I have to admit that I am going a bit too fast. I need more time to let the new things I have learned sink in. Especially since there are so many things I have covered now. 50 (!!) episodes. So I will take it down a notch and release 2 or 3 shows per week going forward.

Also applies to: WebStorm

Questions/Comments/Suggestions

@PhpStormBriefs

51: Testing with PhpUnit

04/22/2016 , 2m, 56s

In version 2016.1 PhpStorm has a really enticing feature to rerun only your failed unit tests after a full run. So instead of messing around on the command line to run only specific tests that have failed the IDE lets you do this with the click of a button. Also applies to: N/A

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

50: Intention Actions

04/20/2016 , 2m, 57s

PhpStorm constantly analyses your code and detects errors or suboptimal code constructs. In many cases it can help you either fix code, generate new code or optimize code. It does this with Intention Actions. This is a brief introduction to these Intention Actions.

Also applies to: WebStorm

Key mappings

OSX:

  • Show Intention Actions: Alt + Enter

Win/Linux:

  • Show Intention Actions: Alt + Enter

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

49: Framework Integration Plugins

04/19/2016 , 2m, 2s

There are a large number of Framework specific plugins available for PhpStorm. It is worth investigating this.

Also applies to: WebStorm

Key mappings

OSX:

  • Plugin Preferences: Shift + Command + A + "Plugin Preferences"

Win/Linux:

  • Plugin Preferences: Shift + Ctrl + A + "Plugin Preferences"

Questions/Comments/Suggestions

@PhpStormBriefs

48: TODO Tool Window

04/18/2016 , 2m, 5s

An easy way to view all your TODO items (comments in your code that contain 'TODO').

Also applies to: WebStorm

Key mappings

OSX:

  • Navigate to TODO: Command + 6

Win/Linux:

  • Navigate to TODO: Alt + 6

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

47: File and Code Templates

04/15/2016 , 2m, 27s

Another form of templates that lets you customize the contents of new files.

Also applies to: WebStorm

Key mappings

OSX:

  • Find Action: Shift + Command + A, Type: File and Code templates

Win/Linux:

  • Find Action: Shift + Ctrl + A, Type: File and Code templates

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

46: Live Templates

04/14/2016 , 2m, 59s

Also known as snippets, live templates are a way to store and recall pre-defined pieces of text/code for later use.

Also applies to: WebStorm

Key mappings

OSX:

  • Find Action: Shift + Command + A, Type: Live templates

Win/Linux:

  • Find Action: Shift + Ctrl + A, Type: Live templates

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

45: Surround Templates

04/13/2016 , 2m, 59s

When you need to surround a word or any block of code with single or double quotes, square brackets or anything else you can use surround templates for this.

Also applies to: WebStorm

Key mappings

OSX:

  • Find Action: Shift + Command + A, Type: Live templates
  • Surround with Live Template: Command + Alt + J

Win/Linux:

  • Find Action: Shift + Ctrl + A, Type: Live templates
  • Surround with Live Template: Ctrl + Alt + J

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

44: The REST Client Tool

04/12/2016 , 2m, 39s

PhpStorm has a REST client that lets you access and test endpoints from right in the IDE.

Also applies to: WebStorm

Access it via the Tools menu -> Test RESTful Web Service

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

43: News - Webinar: What's new in PhpStorm 2016.1

04/12/2016 , 1m, 19s

A free webinar with Gary Hockin about what is new in PhpStorm 2016.1 hosted by JetBrains.

Also applies to: N/A

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

42: Find in Path

04/08/2016 , 1m, 41s

Need to find something by some search string that might not be a class or file name in your project. Then Find in Path might be what you are looking for.

Also applies to: WebStorm

Key mappings

OSX:

  • Find in Path: Command + Shift + F

Win/Linux:

  • Find in Path: Ctrl + Shift + F

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

41: Themes

04/07/2016 , 2m, 56s

We stare at our editor for most of our work day and sometimes even after that. So it is really important that the theme of the editor is not only visually pleasing but also provides good readability. There are a very large number of code highlighting themes available for the JetBrains IDE's, but so far I have not been able to find many themes that consider the entire IDE and all its components. Material Theme UI for Jetbrains by Chris Magnussen is so far the only one that I have found aside from the built-in light and dark themes.

Also applies to: WebStorm

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

40: News - PhpStorm 2016.1.1 EAP available now

04/06/2016 , 39s

JetBrains announces immediate availability of PhpStorm 2016.1.1 as part of its Early Access Program.

Also applies to: N/A

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

39: Code Inspections - Customizing Mess Detector rules

04/06/2016 , 2m, 59s

Creating a custom Mess Detector rule is not necessarily a PhpStorm specific issue, but since I talked about how to configure MD as a code inspection and customizing a rule was actually not straight forward I thought I would explain how to customize properties of existing rules.

Also applies to: N/A

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

38: Scratches

04/05/2016 , 2m, 56s

Ever needed to do a quick test or just slice up some text that had nothing to do with the project you are working on? Well, either use a Scratch File or a Scratch Buffer.

Also applies to: WebStorm

Key mappings

OSX:

  • New scratch file: Shift + Command + N
  • New scratch buffer: Shift + Command + A + "New Scratch Buffer"

Win/Linux:

  • New scratch file: Ctrl+Shift+Alt+Insert
  • New scratch buffer: Ctrl + Shift + A + "New Scratch Buffer"

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

37: Code Style - Configuration

04/04/2016 , 3m

In episode 34 I introduced the Code Sniffer tool that can warn you about code style violations as you type. But there is also a built-in tool that lets you reformat your code after it is written to a particular style. In this episode I talk about how to configure PhpStorm to reformat your code to a particular style.

Also applies to: WebStorm

Key mappings

OSX:

  • Open Code Style Preferences: Shift + Command + A + "Code Style"
  • Reformat Code: Command + Alt + L

Win/Linux:

  • Open Code Style Preferences: Shift + Ctrl + A + "Code Style"
  • Reformat Code: Ctrl + Alt + L (Conflicts with Lock screen on Ubuntu)

Thank you @recchiapiero for pointing out the key mapping conflict on Ubuntu!

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

36: Call to Action

04/01/2016 , 2m, 35s

Lets try to get this CodeSniffer and MessDetector problem in PhpStorm fixed!! Visit the issue Do not let CodeSniffer run during debugging / Ignore it, log in with your account credentials and vote on this issue to get it some exposure.

Also applies to: N/A

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

35: Code Inspections - Recap and Gotchas

04/01/2016 , 2m, 58s

A little recap of what I have learned - to good and the bad. Please visit the link below to the CodeSniffer Issue and vote on it. Lets make this happen!!

Also applies to: N/A

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

34: Code Inspections - Code Sniffer

03/31/2016 , 2m, 48s

Code Sniffer is a coding standard checker that helps you adhere to a pre defined or completely custom coding style.

Also applies to: N/A

Key mappings

OSX:

  • Find Action: Shift + Command + A

Win/Linux:

  • Find Action: Shift + Ctrl + A

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

33: Code Inspections - PHP Mess Detector

03/30/2016 , 2m, 54s

The PHP Mess Detector takes a given PHP source code base and looks for several potential problems within that source. These problems can be things like:

  • Possible bugs
  • Suboptimal code
  • Overcomplicated expressions
  • Unused parameters, methods, properties

In this episode I give a quick overview of what PMD is and how to use it.

Also applies to: N/A

Key mappings

OSX:

  • Find Action: Shift + Command + A

Win/Linux:

  • Find Action: Shift + Ctrl + A

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

32: Code Inspections - Severity and Scope

03/29/2016 , 2m, 58s

Customize how various inspections are reported by the IDE using severity and scope.

Also applies to: WebStorm

Key mappings

OSX:

  • Find Action: Shift + Command + A

Win/Linux:

  • Find Action: Shift + Ctrl + A

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

31: Code Inspections - Examples

03/28/2016 , 2m, 57s

In the last two episodes we talked a bit out theoretical things and now lets look at some specific examples of code inspections and what you can do with them.

Also applies to: N/A

Key mappings

OSX:

  • Find Action: Shift + Command + A

Win/Linux:

  • Find Action: Shift + Ctrl + A

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

30: Code Inspections - Profiles

03/24/2016 , 2m, 52s

PhpStorm lets you store your inspections settings in what is called a profile. You can have as many of these as you like and they apply either to all your projects or a specific project.

Also applies to: WebStorm

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

29: Code Inspections - Introduction

03/23/2016 , 2m, 58s

PhpStorm (and WebStorm) comes with a bunch of code inspections pre configured right out of the box. The code in your open editor windows is continuously inspected for errors, which are reported in the right margin of your editor window. In this episode I introduce a few concepts and the basic usage of static code analysis in the IDE.

Also applies to: WebStorm

Key mappings

OSX:

  • Next highlighted error: F2
  • Previous highlighted error: Shift + F2

Win/Linux:

  • Next highlighted error: F2
  • Previous highlighted error: Shift + F2

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

28: More on Opening Files

03/22/2016 , 1m, 19s

Two more tiny tips on how to open files in the ID. They almost seem trivial but I thought I would mention it anyway.

Also applies to: WebStorm

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

27: Files, Files, Files

03/21/2016 , 2m, 47s

All our work revolves around files, so it is important to be able to navigate between them quickly. In this episode Go to Class and Go to File.

Also applies to: WebStorm

Key mappings

OSX:

  • Go to Class: Command + O
  • Go to File: Command + Shift + O

Win/Linux:

  • Go to Class: Ctrl + N
  • Go to File: Ctrl + Shift + N

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

26: News - PhpStorm 2016.1 Is Out NOW!

03/18/2016 , 29s

JetBrains released 2016.1! It is available for download now.

Also applies to: N/A

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

25: Refactoring - Copy

03/18/2016 , 1m, 34s

This is not really more than a simply copy file operation but there are a few nice little things the IDE does for you.

Also applies to: WebStorm

Key mappings

OSX:

  • F5 or Command + C / Command + V

Win/Linux:

  • F5 or Ctrl + C / Ctrl + V

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

24: Refactoring - Pushing Members

03/17/2016 , 2m, 37s

A simply way to move class members up and down the class hierarchy.

Also applies to: N/A

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

23: Refactoring - Safe Delete

03/16/2016 , 2m, 20s

Another time saver and great support from the IDE to avoid mistakes. Safely delete any symbol from your code if you think it is no longer required.

Also applies to: WebStorm

Key mappings

OSX:

  • Command + Delete

Win/Linux:

  • Alt + Delete

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

22: What About WebStorm?

03/16/2016 , 1m, 46s

I will be adding tags to the show notes for WebStorm and hashtags on tweets for episodes that also apply to WebStorm.

Shoutout to Kahlil Lechelt (@kahliltweets) and Steve Daly ‏(@spdaly).

Questions/Comments/Suggestions

@PhpStormBriefs

21: Refactoring - Extract Method

03/15/2016 , 2m, 59s

The Extract Method refactoring is incredibly powerful when cleaning up and organizing legacy code or simply getting a handle on some of your own methods that are too large.

Key mappings

OSX:

  • Command + Alt + M

Win/Linux:

  • Ctrl + Alt + M

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

20: Navigation - To and From Tool Windows

03/14/2016 , 2m, 38s

Tool windows can be opened with keyboard shortcuts! They also automatically get focus this way. And you can move back to the editor window with a keyboard shortcut as well.

Key mappings

OSX:

  • To Tool Window: Command + 0..9
  • From Tool Window to editor: Esc

Win/Linux:

  • To Tool Window: Alt + 0..9
  • From Tool Window to editor: Esc

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

19: News - PhpStorm 2016.1 RC1 is available

03/11/2016 , 2m, 8s

JetBrains just announced that PhpStorm 2016.1 RC1 build 145.256 is available for download.

A brief explanation of the new version numbers.

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

18: Refactoring - Rename

03/11/2016 , 2m, 54s

Refactoring support is one of the greatest features of PhpStorm in my opinion. It is a huge time saver, especially when working with legacy code bases that need refactoring.

The first refactoring that I will talk about is rename.

Key mappings

OSX:

  • Shift + F6

Win/Linux:

  • Shift + F6

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

17: Editing - Commenting and Uncommenting

03/10/2016 , 2m, 58s

Commenting and uncommenting code is a very frequent activity, so using this handy shortcut will save you a lot of time.

Key mappings

OSX:

  • Line: Command + /
  • Block: Command + Alt + /

Win/Linux:

  • Line: Ctrl + /
  • Block: Ctrl + Shift + /

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

16: Navigation - Switching between projects

03/09/2016 , 46s

PhpStorm supports having multiple projects open at the same time. This is a handy way to cycle through them quickly. This only works on OSX. I am not aware of a shortcut for Windows.

Key mappings

OSX:

  • Command + backtick

Win/Linux:

  • Not supported ??

Questions/Comments/Suggestions

@PhpStormBriefs

15: The Embedded Terminal

03/08/2016 , 2m, 51s

PhpStorm has support for an embedded Terminal window. So instead of switching to a stand-alone terminal you could stay within the IDE and do all your command line stuff right in PhpStorm.

Key mappings

OSX:

  • Alt + F12

Win/Linux:

  • Alt + F12

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

14: News - PhpStorm 11 Public Preview

03/07/2016 , 2m, 55s

Last week JetBrains announced the availability of the PhpStorm 11 public preview release, which is packed with new features.

What's New

  • PHP Language & Editing Experience
    • Better PHP Language Support
    • Support for group use statements
    • Make Static refactoring
    • New intentions
  • New Debugging Experience
    • Usability Improvements for Debugging
    • XDebug for REST Client
  • Frameworks, Tools, and more
    • SFTP/FTP/FTPS keep-alive
    • Project-level Interpreters
    • Mappings for Remote Interpreters
    • Rerun failed tests for PHPUnit/Behat
  • Top-notch Web Technologies
    • Improved Angular 2 support
    • Better TypeScript support
    • New features in JavaScript debugger
  • IDE improvements
    • Version Control
    • Right-to-left languages support
    • Speed search
    • JSON Schema
    • Docker

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

13: Plugins - IdeaVim

03/04/2016 , 2m, 37s

The IdeaVim plugin is a vim mode emulator for your editor window. It supports a surprisingly large feature set of vim.

Summary of Supported Vim Features

Supported:
  • Motion keys
  • Deletion/changing
  • Insert mode commands
  • Marks
  • Registers
  • Undo/redo
  • Visual mode commands
  • Some Ex commands
  • Some [:set options](doc/set-commands.md)
  • Full Vim regexps for search and search/replace
  • Key mappings
  • Macros
  • Digraphs
  • Command line and search history
  • Window commands
  • Vim web help
Emulated Vim plugins:
  • vim-surround

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

12: Plugins - Markdown

03/04/2016 , 2m, 58s

A quick intro of the 4 markdown plugins I found for PhpStorm. My favorite at the moment if gfm. It renders Github flavored markdown.

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

11: Plugins - Overview

03/03/2016 , 2m, 29s

PhpStorm has a powerful plugin system that allows you to expand the functionality of the IDE. Currently there are 570 PhpStorm specific plugins available.

How to get to the Plugins dialog

  • OSX: Shift + Command + A then type Plugins
  • Windows, Linux: Shift + Ctrl + A then type Plugins

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

10: The Productivity Guide

03/02/2016 , 2m, 5s

PhpStorm keeps track of what you are doing and gives you some useful analytics on the things you do most and least.

Thanks to Matthew Setter!

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

8: Usage Search (Part 2/2)

02/29/2016 , 2m, 7s

Two commands to find the usages of a symbol in the current file.

Key mappings

OSX:

  • Find usages in file: Command + F7
  • Highlight usage in file: Command + Shift + F7

Win/Linux:

  • Find usages in file: Ctrl + F7
  • Highlight usage in file: Ctrl + Shift + F7

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

7: Usage Search (Part 1/2)

02/29/2016 , 2m, 58s

There are 4 different variations of this command with slightly different behavior. In this episode the two that search accross the entire project.

Key mappings

OSX:

  • Find usages: Option + F7
  • Show usages: Command + Option + F7
  • Find usages settings: Alt + Command + Shift + F7

Win/Linux:

  • Find usages: Alt + F7
  • Show usages: Ctrl + Alt + F7
  • Find usages settings: Ctrl + Shift + Alt + F7

Docs

Questions/Comments/Suggestions

@PhpStormBriefs

6: Navigation - Go to Declaration

02/26/2016 , 1m, 8s

Go to Declaration

To jump to the declaration of a Class, Method, Variable, Constant, Interface etc. This also works for CSS, HTML and XML.

  • OSX: Command + B or Command + Click
  • Win/Linux: Ctrl + B or Ctrl + Click

Documentation

@PhpStormBriefs

5: Announcements

02/25/2016 , 1m, 27s

PhpStormBriefs is now on Twitter @PhpStormBriefs

4: Navigation: How to find anything

02/25/2016 , 2m, 43s

Find an Action

  • OSX: Shift + Command + A
  • Windows, Linux: Shift + Ctrl + A

Go to next/previous editor tab

  • OSX: Control + Right/Left or my preferred method Shift + Command + [/]
  • Windows, Linux: Alt + Right/Left

3: Resources

02/24/2016 , 2m

Where to get help with PhpStorm when you need it.

2: Why PhpStorm?

02/24/2016 , 2m, 43s

A quick summary that outlines my reasons for using PhpStorm and why in my opinion it is currently the best solution for working with PHP code bases. IdeaVim is also one of the best vim-mode plug-ins that I have used. So if you are a vim user, check it out.

1: Hello World

02/23/2016 , 2m, 40s

A new show about my PhpStorm learning journey. Useful tips and tricks that make you a more effective PhpStorm user.