[Xcode] swiftformat-for-xcode 설치 / 설정 / 삭제

H.GOO·2024년 7월 9일
1

swiftformat-for-xcode 설치

$ brew install --cask swiftformat-for-xcode


SwiftFormat for Xcode 실행



SwiftFormat 설정 방법 안내

시스템 설정 -> 개인정보 보호 및 보안 -> 확장 프로그램 -> Xcode Source Editor -> SwiftFormat 체크 -> 완료



앱 단축키로 Format On Save 설정

시스템 설정 -> 앱단축키 -> + -> 화면과 같이 설정 -> 완료



Xcode 재실행 후 command+S 하여 코드 포맷팅 실행 확인




swiftformat-for-xcode 지우는 법

$ brew uninstall swiftformat-for-xcode


앱 단축키 제거


reference
Format On Save — Xcode / Swift

0개의 댓글