PyCharm은 Python 개발을 위한 매우 강력한 IDE로, 개발자들이 보다 효율적으로 작업할 수 있도록 다양한 단축키를 제공합니다. 여기 많이 사용하는 PyCharm 단축키를 소개합니다. 이 단축키들은 개발자들이 코드를 더 빠르고 효율적으로 작성, 수정 및 탐색할 수 있게 도와줍니다.

PyCharm 단축키 바로가기
필수 명령어
라인 복제
현재 라인이나 선택한 코드를 아래에 바로 복사합니다.
Windows | Mac | |
라인 복제 | Ctrl + D | Cmd + D |

라인 삭제
현재 라인을 삭제합니다.
Windows | Mac | |
라인 삭제 | Ctrl + Y | Cmd + Backspace |

다음 라인 이동
커서를 다음 라인으로 이동시킵니다.
Windows | Mac | |
다음 라인 이동 | Shift + Enter | Shift + Enter |

라인 주석 처리/해제
현재 라인을 주석 처리하거나 주석을 해제합니다.
Windows | Mac | |
라인 주석 처리/해제 | Ctrl + / | Cmd + / |

라인 정리
코드 형식을 정리합니다.
Windows | Mac | |
라인정리 | Ctrl + Alt + L | Cmd + Option + L |

커서 이동
커서를 코드 내에서 자유롭게 이동합니다.
Windows | Mac | |
끝으로 이동 | Ctrl + ← / Ctrl + → | Option + ← / Option + → |

코드 이동
선택한 코드 블록을 위나 아래로 이동시킵니다.
Windows | Mac | |
코드 이동 | Ctrl + Shift + ↑ / Ctrl + Shift + ↓ | Cmd + Shift + ↑ / Cmd + Shift + ↓ |

특정단어 수정
전체 프로젝트에서 특정 단어를 수정합니다.
| Windows | Mac |
선택 영역 확대/축소 | Ctrl + Shift + R | Cmd + Shift + R |

전체 검색
프로젝트 전체에서 특정 단어나 구문을 검색합니다.
| Windows | Mac |
에디터 돌아가기 | Shift Shift | Shift Shift |

추가 명령어
자동완성
코드를 더 빠르게 작성하기 위한 자동 완성 기능을 활성화합니다.
| Windows | Mac |
자동완성 | Shift+Ctrl+Enter | Shift + Cmd + Enter |

선택 영역 확대/축소
코드 선택 범위를 확대하거나 축소합니다.
| Windows | Mac |
선택 영역 확대/축소 | Ctrl + W / Shift + Ctrl + W | Option + ↑ / Option + ↓ |

라이브러리 설치
PyCharm의 내장 기능을 통해 프로젝트에 라이브러리를 설치합니다
| Windows | Mac |
라이브러리 설치 | Alt + Enter | Option + Enter |

코드안으로 바로 가기
선언된 위치나 정의된 위치로 바로 이동합니다.
| Windows | Mac |
코드 실행 | Ctrl+B | Cmd + B |

스크립트 실행
현재 스크립트나 프로젝트를 실행합니다.
| Windows | Mac |
코드 실행 | Ctrl Ctrl | Ctrl Ctrl |

오류 경고 점프
다음 또는 이전의 오류나 경고로 바로 이동합니다.
Windows | Mac | |
오류 경고 점프 | F2 | F2 |

문제 제안
현재 컨텍스트에서 가능한 문제 해결책을 제안합니다.
Windows | Mac | |
문제제안 | Alt + Enter | Option + Enter |
이미지를 클릭하시면 동작을 다시 확인할수 있습니다.

에디터 돌아가기
에디터 이외의 작업 중 코드 작업하던 위치로 돌아가서 작업을 계속 수행
Windows | Mac | |
에디터 돌아가기 | Esc | Esc |

최근 파일로 가기
최근에 사용한 파일 목록을 보여주고, 선택하여 이동합니다.
| Windows | Mac |
최근 파일로 가기 | Ctrl + E | Cmd + E |

단축키 검색
단축키에 대한 도움말을 검색합니다.
| Windows | Mac |
에디터 돌아가기 | Shift + Ctrl + A | Shift + Cmd + A |
