44

Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects
Page 2: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Maximum PhpStorm

Page 3: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

1: Discovery

2: Time / Frustration savers

3: Digital Detective work

4: Adapt the tool to you

There’s levels to this

3

Page 4: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

PhpStorm indexes all of your code to learn as much as about your code as it can.

Being able to quickly access the right code at the right time protects a developer’s sanity and helps them fully understand how code can inter-relate. This is an essential skill for all developers.

* Your map in this dungeon

of code.

Proprietary and Confidential 4

Discovering your code

Page 5: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

A common denominator of good tools

Intellisense

Proprietary and Confidential 5

Page 6: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

The legendary...

SHIFT + SHIFT

Find anything, anywhere

Proprietary and Confidential 6

Page 7: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

If you know what type of thing it is...

Find Files

Find Class

Find Method

Proprietary and Confidential 7

⌘+Shift+O Ctrl+Shift+N

⌘+⌥+O Ctrl+Shift+Alt+N

⌘+O Ctrl+N

Page 8: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Parameter Hints

Proprietary and Confidential 8

⌘+P

Ctrl+P

Page 9: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential

Proprietary and Confidential 9

Go to DefinitionReveal all the secrets

⌘+B

Ctrl+B

Page 10: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential

Proprietary and Confidential 10

Find UsagesWhere is this causing problems?

⌥+F7

Alt+F7

Page 11: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Solving problems is inherently frustrating. Many things lead to restarts, new-directions, deep thinking.

It would be nice if your tool could help alleviate some of the frustration or at best allow you work smarter / faster and save effort.

* Key to building your skills

Proprietary and Confidential 11

Time / Frustration savers

Page 12: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential

Proprietary and Confidential 12

TerminalGet your command line in your IDE

Page 13: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Clean up code

Page 14: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential

Proprietary and Confidential 14

Reformat CodeSimplies Drupal development greatly

Shift+⌘+L

Ctrl+Alt+L

Page 15: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential 15

Clipboard HistoryWhy doesn’t everything have this?

Shift+⌘+V

Ctrl+Shift+V

Page 16: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential

Proprietary and Confidential 16

Update Doc blockHelpful for when you add an argument

⌥+Enter

Alt+Enter

Page 17: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential

Proprietary and Confidential 17

Scratch PadsGood for temporary fixes

Shift+⌘+N

Ctrl+Shift+N

Page 18: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Complying with code standards

Page 19: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential

Proprietary and Confidential 19

Drupal ExtensionSimplies Drupal development greatly

Page 20: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Search the web for answers...

Drupal API search

Proprietary and Confidential 20

& Shift+F1

Page 21: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Passive scans

21

Page 22: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential

Proprietary and Confidential 22

File Health CheckGreat for pre-commit checks

Shift+⌥+I

Ctrl+Alt+I

Page 23: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Never have to leave PS again

Page 24: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential

Proprietary and Confidential 24

Git tools Awesome frustration SAVER

Page 25: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential

Proprietary and Confidential 25

Run your frontend buildGet your command line in your IDE

Page 26: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential 26

Favorites panelWhy doesn’t everything have this?

Let PhpStorm keep

track of the

templates / files

that tend to be hard

to remember /

troublesome.

Page 27: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Now it’s really time to level up. Use your knowledge of the tool to become a digital detective.

Gain access to the full context of what’s going on with your code. Learn to jump forward and backward in time to get the full story.

* Leveraging the tool to solve

real problems

Proprietary and Confidential 27

Digital detective work

Page 28: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Debugging with Phpstorm

Page 29: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Debugging with PhpStorm

29

Page 30: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Debugger tips and tricks

Does PhpStorm know how to talk to your debugger?

Proprietary and Confidential 30

Page 31: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Debugger tips and tricks

If can talk to your debugger, break on first line.

Run > Break at first line in PHP scripts.

Proprietary and Confidential 31

Page 32: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential

Proprietary and Confidential 32

Debugger timeLet’s run through common pitfalls

Page 33: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Interrogate the data

Page 34: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Database Console

Find the truth, the whole truth

Connect to you DB to query directly.

Proprietary and Confidential 34

Page 35: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Database Console

Connect to your VM / Docker instance’s DB

Proprietary and Confidential 35

Page 36: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Database Console

Connect to your VM / Docker instance’s DB

Proprietary and Confidential 36

Page 37: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential

Proprietary and Confidential 37

Database ConsoleIt pays off!

Page 38: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Let’s put it all together

Page 39: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

What’s beyond being able to know everything about your code, optimizing how PhpStorm wants to be used, and becoming a digital detective?

Making PhpStorm adapt to you by telling it how you like to work.

* Instead of adapting your

work habits to the tool.

Proprietary and Confidential 39

Adapt the tool to you

Page 40: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential

Proprietary and Confidential 40

KeymapTeach it new keyboard shortcuts

Page 41: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Proprietary and Confidential 41

Key PromoterThe most annoyingly help plugin ever

Page 42: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Split windows / move panels

Rearrange Windows

Proprietary and Confidential 42

Page 43: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Keymap Shortcut cheat sheet: Help > Keymap ReferencePhpStorm Blog : https://blog.jetbrains.com/phpstorm/Jetbrains Toolbox: https://www.jetbrains.com/toolbox/Early Access Program: https://www.jetbrains.com/phpstorm/eap/

Additional resources

43

Page 44: Maximum PhpStorm - midcamp.org...PhpStorm indexes all of your code to learn as much as about your code as it can. Being able to quickly access the right code at the right time protects

Q & A