Tabs: 쉽게 사용가능, 대부분의 에디터에서 기본 들여쓰기로 되어있음, 에디터에서 space 몇 칸을 tab으로 설정할지 변경할 수 있음
Spaces: 어느 환경에서든 코드가 동일하게 보임(ex. GitHub PRS)
참고
https://www.quora.com/What-is-the-difference-between-tabs-and-spaces-for-indenting
What is the difference between tabs and spaces for indenting?
Answer (1 of 2): Tabs - They allow for user preference - Tab is the default indentation in many editors when hitting the tab key. So using spaces requires extra config e.g. editorconfig - They are syntax errors in several programming languages like Elm, F#
www.quora.com
'개발 지식' 카테고리의 다른 글
JavaScript 쓰로틀링(Throttling), 디바운싱(Debouncing) (0) | 2023.03.25 |
---|---|
항상 Footer가 하단에 위치하도록 설정하는 레이아웃 (0) | 2022.04.03 |
Naming Cases (0) | 2022.01.02 |
파일 마지막에 빈 줄을 넣는 이유 (0) | 2021.07.02 |
POST vs PUT (0) | 2021.02.15 |