[VSCode] Lorem Ipsum 더미 텍스트 추가
1. Emmet
- Emmet: lorem100 + Tab
- 스니펫: 자주 쓰는 단어 수, lorem 문구 커스텀 가능
VSCode에는 Emmet이라는 코드 자동완성 기능이 있다. 더미 텍스트를 단락으로 추가하고 싶을 때 이용하는 기능이다.
HTML이나 텍스트 파일에서 lorem 입력 후 탭(tab)키를 누르면 Lorem Ipsum이 자동으로 들어온다.
lorem100
- lorem100 Lorem → Ipsum 100단어 생성
- lorem → 기본 30단어 생성
2. 단축키/스니펫 만들기
- VSCode에서
Ctrl+Shift+P
→Preferences: Configure User Snippets
선택 New Global Snippets file
선택 (또는 원하는 언어 선택)- 파일 이름 예:
custom-lorem.code-snippets
{
"Insert Custom 100 Words": {
"prefix": "mytext100", // 호출 단어
"body": [
"The story explores themes of innocence and wonder, reminding readers to see the world not only with their eyes but with their hearts. The prince’s relationship with a rose on his home asteroid teaches him about the uniqueness of love, while his friendship with the fox imparts lessons about trust, connection, and the importance of forming meaningful bonds."
],
"description": "Insert 100 words of custom text"
}
}
"prefix": "mytext100"
→ VSCode에서 mytext100 입력 후 Tab → 스니펫 실행"body"
→ 실제 삽입될 100단어 텍스트