사이트맵
Laravel, Symfony, WordPress 및 데이터베이스 관리와 PHP 개발을위한 포괄적 인 PhpStorm 단축키 및 워크플로우.
일반 단축키
| | Windows/Linux | macOS | Description | |
| --- | --- | --- |
| | Ctrl+Shift+A
| Cmd+Shift+A
| Find Action | |
| | Ctrl+Shift+N
| Cmd+Shift+O
| Go to File | |
| | Ctrl+N
| Cmd+O
| Go to Class | |
| | Ctrl+Shift+Alt+N
| Cmd+Option+O
| Go to Symbol | |
| | Ctrl+E
| Cmd+E
| Recent Files | |
| | Ctrl+Shift+E
| Cmd+Shift+E
| Recent Locations | |
| | Ctrl+G
| Cmd+L
| Go to Line | |
| | Ctrl+F12
| Cmd+F12
| File Structure | |
| | Alt+F1
| Option+F1
| Select In | |
- 연혁
| | Windows/Linux | macOS | Description | |
| --- | --- | --- |
| | Ctrl+B
| Cmd+B
| Go to Declaration | |
| | Ctrl+Alt+B
| Cmd+Option+B
| Go to Implementation | |
| | Ctrl+Shift+B
| Cmd+Shift+B
| Go to Type Declaration | |
| | Ctrl+U
| Cmd+U
| Go to Super Method | |
| | Alt+F7
| Option+F7
| Find Usages | |
| | Ctrl+F7
| Cmd+F7
| Find Usages in File | |
| | Ctrl+Shift+F7
| Cmd+Shift+F7
| Highlight Usages | |
| | Ctrl+Alt+F7
| Cmd+Option+F7
| Show Usages | |
| | Ctrl+Click
| Cmd+Click
| Go to Declaration | |
관련 기사
| | Windows/Linux | macOS | Description | |
| --- | --- | --- |
| | Ctrl+Space
| Ctrl+Space
| Basic Code Completion | |
| | Ctrl+Shift+Space
| Ctrl+Shift+Space
| Smart Code Completion | |
| | Ctrl+Alt+Space
| Ctrl+Option+Space
| Class Name Completion | |
| | Ctrl+Shift+Enter
| Cmd+Shift+Enter
| Complete Current Statement | |
| | Ctrl+P
| Cmd+P
| Parameter Info | |
| | Ctrl+Q
| Ctrl+J
| Quick Documentation | |
| | Shift+F1
| Shift+F1
| External Documentation | |
| | Ctrl+F1
| Cmd+F1
| Show Error Description | |
| | Alt+Insert
| Cmd+N
| Generate Code | |
| | Ctrl+O
| Ctrl+O
| Override Methods | |
| | Ctrl+I
| Ctrl+I
| Implement Methods | |
코드 형식
| | Windows/Linux | macOS | Description | |
| --- | --- | --- |
| | Ctrl+Alt+L
| Cmd+Option+L
| Reformat Code | |
| | Ctrl+Alt+O
| Ctrl+Option+O
| Optimize Imports | |
| | Ctrl+Alt+I
| Ctrl+Option+I
| Auto-Indent Lines | |
| | Tab
| Tab
| Indent Selection | |
| | Shift+Tab
| Shift+Tab
| Unindent Selection | |
| | Ctrl+Alt+T
| Cmd+Option+T
| Surround With | |
| | Ctrl+/
| Cmd+/
| Comment/Uncomment Line | |
| | Ctrl+Shift+/
| Cmd+Shift+/
| Comment/Uncomment Block | |
회사연혁
| | Windows/Linux | macOS | Description | |
| --- | --- | --- |
| | F5
| F5
| Copy | |
| | F6
| F6
| Move | |
| | Shift+F6
| Shift+F6
| Rename | |
| | Ctrl+F6
| Cmd+F6
| Change Signature | |
| | Ctrl+Alt+N
| Cmd+Option+N
| Inline | |
| | Ctrl+Alt+M
| Cmd+Option+M
| Extract Method | |
| | Ctrl+Alt+V
| Cmd+Option+V
| Extract Variable | |
| | Ctrl+Alt+F
| Cmd+Option+F
| Extract Field | |
| | Ctrl+Alt+C
| Cmd+Option+C
| Extract Constant | |
| | Ctrl+Alt+P
| Cmd+Option+P
| Extract Parameter | |
실행 및 디버깅
| | Windows/Linux | macOS | Description | |
| --- | --- | --- |
| | Shift+F10
| Ctrl+R
| Run | |
| | Shift+F9
| Ctrl+D
| Debug | |
| | Ctrl+Shift+F10
| Ctrl+Shift+R
| Run Context Configuration | |
| | Ctrl+Shift+F9
| Ctrl+Shift+D
| Debug Context Configuration | |
| | F8
| F8
| Step Over | |
| | F7
| F7
| Step Into | |
| | Shift+F7
| Shift+F7
| Smart Step Into | |
| | Shift+F8
| Shift+F8
| Step Out | |
| | Alt+F9
| Option+F9
| Run to Cursor | |
| | Alt+F8
| Option+F8
| Evaluate Expression | |
PHP-Specific 기능
| | Windows/Linux | macOS | Description | |
| --- | --- | --- |
| | Ctrl+Shift+F10
| Ctrl+Shift+R
| Run PHP Script | |
| | Alt+Shift+F10
| Option+Shift+R
| Run PHP Web Page | |
| | Ctrl+Alt+S
| Cmd+,
| Open Settings | |
| | Ctrl+Alt+Shift+S
| Cmd+;
| Project Structure | |
| | Ctrl+Shift+A
| Cmd+Shift+A
| Find Action | |
Laravel 개발
| | Windows/Linux | macOS | Description | |
| --- | --- | --- |
| | Ctrl+Alt+R
| Cmd+Option+R
| Artisan Commands | |
| | Ctrl+Shift+X
| Cmd+Shift+X
| Run Artisan Command | |
| | Ctrl+Alt+G
| Cmd+Option+G
| Tinker Console | |
| | php
+ Tab
| php
+ Tab
| PHP Tag | |
| | class
+ Tab
| class
+ Tab
| Class Template | |
| | function
+ Tab
| function
+ Tab
| Function Template | |
Symfony 개발
| | Windows/Linux | macOS | Description | |
| --- | --- | --- |
| | Ctrl+Alt+R
| Cmd+Option+R
| Symfony Console | |
| | Ctrl+Shift+X
| Cmd+Shift+X
| Run Symfony Command | |
| | route
+ Tab
| route
+ Tab
| Route Annotation | |
| | controller
+ Tab
| controller
+ Tab
| Controller Template | |
데이터베이스 도구
| | Windows/Linux | macOS | Description | |
| --- | --- | --- |
| | Ctrl+Alt+Shift+L
| Cmd+Option+Shift+L
| Reformat SQL | |
| | Ctrl+Enter
| Cmd+Enter
| Execute Query | |
| | Ctrl+Shift+Enter
| Cmd+Shift+Enter
| Execute Query (New Tab) | |
| | F4
| F4
| Edit Source | |
| | F5
| F5
| Refresh | |
| | Ctrl+N
| Cmd+N
| New Query Console | |
Composer 통합
| | Windows/Linux | macOS | Description | |
| --- | --- | --- |
| | Ctrl+Alt+Shift+U
| Cmd+Option+Shift+U
| Update Dependencies | |
| | Ctrl+Alt+Shift+I
| Cmd+Option+Shift+I
| Install Dependencies | |
| | Ctrl+Shift+A
| Cmd+Shift+A
| Composer Commands | |
테스트 (PHPUnit)
| | Windows/Linux | macOS | Description | |
| --- | --- | --- |
| | Ctrl+Shift+F10
| Ctrl+Shift+R
| Run Test | |
| | Ctrl+Shift+F9
| Ctrl+Shift+D
| Debug Test | |
| | Alt+Shift+F10
| Option+Shift+R
| Run All Tests | |
| | Ctrl+Alt+F6
| Cmd+Option+F6
| Run Failed Tests | |
버전 제어 (Git)
| | Windows/Linux | macOS | Description | |
| --- | --- | --- |
| | Ctrl+K
| Cmd+K
| Commit | |
| | Ctrl+Shift+K
| Cmd+Shift+K
| Push | |
| | Ctrl+T
| Cmd+T
| Update Project | |
| | Alt+9
| Cmd+9
| Version Control Tool Window | |
| | Ctrl+Alt+Z
| Cmd+Option+Z
| Rollback | |
검색 및 교체
| | Windows/Linux | macOS | Description | |
| --- | --- | --- |
| | Ctrl+F
| Cmd+F
| Find | |
| | F3
| Cmd+G
| Find Next | |
| | Shift+F3
| Cmd+Shift+G
| Find Previous | |
| | Ctrl+R
| Cmd+R
| Replace | |
| | Ctrl+Shift+F
| Cmd+Shift+F
| Find in Path | |
| | Ctrl+Shift+R
| Cmd+Shift+R
| Replace in Path | |
도구 Windows
| | Windows/Linux | macOS | Description | |
| --- | --- | --- |
| | Alt+1
| Cmd+1
| Project Tool Window | |
| | Alt+2
| Cmd+2
| Favorites | |
| | Alt+3
| Cmd+3
| Find Tool Window | |
| | Alt+4
| Cmd+4
| Run Tool Window | |
| | Alt+5
| Cmd+5
| Debug Tool Window | |
| | Alt+6
| Cmd+6
| TODO Tool Window | |
| | Alt+7
| Cmd+7
| Structure Tool Window | |
| | Alt+8
| Cmd+8
| Services Tool Window | |
| | Alt+9
| Cmd+9
| Version Control | |
| | Alt+0
| Cmd+0
| Messages Tool Window | |
최고의 연습
프로젝트 설정
- ** PHP 구성 Interpreter**: 파일 → 설정 → 언어 및 프레임 워크 → PHP
- Enable Composer: 파일 → 설정 → 언어 및 프레임 워크 → PHP → Composer
- ** 설정 코드 스타일 **: 파일 → 설정 → 편집기 → 코드 스타일 → PHP
Laravel 개발
- Install Laravel 플러그인 : 파일 → 설정 → 플러그인 → 라라벨
- 라벨 구성 : 파일 → 설정 → 언어 및 프레임 워크 → PHP → 라벨
- Enable Blade: 파일 → 설정 → 언어 및 프레임 워크 → PHP → 블레이드
Database 통합
- ** 데이터 소스 추가 **: 데이터베이스 도구 창 → + → 데이터 소스
- ** 연결 구성 **: 호스트, 포트, 데이터베이스, 자격 증명
- Test Connection: 데이터베이스 연결을 검증
Debugging 설정
- Install Xdebug: PHP 설치에서 Xdebug 구성
- PhpStorm: 파일 → 설정 → 언어 및 프레임 워크 → PHP → 디버그
- Set Breakpoints: Gutter 또는 Ctrl+에서 클릭 사이트맵