PHPStorm: Difference between revisions
| Line 14: | Line 14: | ||
* open VCS tool window (ALT+9) -> Local Changes | * open VCS tool window (ALT+9) -> Local Changes | ||
* in Unversioned Filelist Right Click on file -> Ignore | * in Unversioned Filelist Right Click on file -> Ignore | ||
* this will not add anything to <code>.gitignore</code> | |||
====Unignore Files=== | |||
* CTRL+ALT+S (will lead to Settings -> Version Control -> Ignored Files) | |||
====Watch Changes==== | ====Watch Changes==== | ||
Revision as of 12:09, 4 July 2019
Operations
Change keymapping by CTRL+ALT+S -> Keymapp -> Search -> Right Click -> Add or Remove
Gitting
Add Files to VCS
- open VCS tool window (ALT+9) -> Local Changes
- in Unversioned Filelist Right Click on file -> Add to VCS
- press refresh icon on the left side
Ignore Files
- open VCS tool window (ALT+9) -> Local Changes
- in Unversioned Filelist Right Click on file -> Ignore
- this will not add anything to
.gitignore
=Unignore Files
- CTRL+ALT+S (will lead to Settings -> Version Control -> Ignored Files)
Watch Changes
- open VCS tool window (ALT+9) -> Local Changes
- blue = changed after last synchronization
- green = new files added, but not committed
- in the editor just left of the edit area
- blue bar = line changed
- green bar = line added
- triangle = line deleted
- click on the marks will show the changes
Finding
- find class by name: CTRL+N
- find file: CTRL+SHIFT+N
- find word where the caret is: CTRL+F3
- find in (sub-)path
- right click on directory -> Find in Path
- Open in Find Window -> adds window in bottom area
Coding
- toogle line comment CTRL+7 (remapped)
- toogle block comment CTRL+SHIFT+7 (remapped)
- rename classes, methods and variables: Refactor->Rename or SHIFT+F6
- override methods: Code->Override
- implement methods: Code->Implement methods or CTRL+I
- complete line or language construct: CTRL+SHIFT+ENTER
- move to next method in class: ALT+UP|DOWN
Cross Reference
- open declaration: Navigate->Type Declaration or CRTL+SHIFT+B or CTRL+LEFT_MOUSE (navigate back by Menu->Navigate-Back or CTRL+TAB)
- show class hierachy window: CTRL+H
- show interface implementations: select interface and press CTRL+ALT+B
- show definition of actual element: CTRL+SHIFT+I
- show method hierachy window: select method and CRTL+SHIFT+H
- show UML class diagram: select class and press CRTL+ALT+U
- navigate in actual file: CTRL+F12
Miscellaneous
- synchronize project tree: ALT+F1