Microsoft/Monaco Editor Shortcuts(단축키)

카테고리 IT/티스토리

무찌마, 댓글

초고 2022. 6. 18.

About Monaco Editor

Microsoft / Monaco Editor
A browser based code editor

 

The Monaco editor is not supported in mobile browsers or mobile web frameworks.

We cannot guarantee that all of the shortcuts are working properly since the operations may differ depending on the version of OS and browsers.

개인적으로 필요해서 인터넷에서 자료를 수집하여 정확한 단축키 모음 글을 작성하기 시작했습니다. 스크립트로 단축키 속성 변경이 가능하기 때문인지 공식적으로 발표된 문서나 단일화된 자료도 발견할 수 없었습니다. 아래 글은 여러 곳의 내용을 요약하여 나름대로 작성하였습니다. 추가 교정이 필요합니다.

※ 단축키의 지정된 실행 명령 변경이 가능하므로, 반드시 사전 검사가 필요하고 글의 내용은 보조 자료로 참고합니다.

그 동안 참고한 페이지 리스트 링크합니다.

Table of keyboard shortcuts - Wikipedia

https://github.com/microsoft/monaco-editor/wiki/Monaco-Editor-Accessibility-Guide

https://docs.microsoft.com/en-us/azure/devops/project/navigation/keyboard-shortcuts?view=azure-devops

https://en.docs.monaca.io/products_guide/monaca_ide/editor

 

티스토리 블로그를 위한 스킨 편집 메뉴에서,

? 버튼을 누르면 "스킨 편집 단축키" 창이 뜨고,

편집 라인에서 마우스 오른쪽 버튼 클릭하고 Command Palette 선택하거나, 

편집 라인에서 F1 키를 누르면 작은 팝업 창에 단축키 리스트와 검색 버튼을 제시합니다.

 

Command Palette (F1)
? 버튼 스킨 편집 단축키


Windows/Linux (Mac)

 

# 미리보기 새로 고침

Ctrl + S

 

# 저장

shift + Ctrl + S

 

# 줄 이동

Alt + G

 

# 줄 삭제

Ctrl + D

 

# Undo, 실행 취소
Ctrl + Z (Mac: Command + Z)

# Redo, 다시 실행
Ctrl + Y (Mac: Shift + Command + Y, Command + Y)


# Search, 찾기(검색)
Ctrl + F (Mac: Command + F)

 

# Search and replace, 찾아 바꾸기
Ctrl + H (Mac: Command + F)

 

# 다음 검색 결과로 이동

Ctrl + G

 

# 이전 검색 결과로 이동

Shift + Ctrl + G

 

# 변경

Shift + Ctrl + F

 

# 모두 변경

Shift + Ctrl + R


# Increase indent, 들여쓰기(탭 추가)
Tab (Mac: Tab)

# Decrease indent, 들여쓰기(탭 제거)
Shift + Tab (Mac: Shift + Tab)

 

# Indent line, 들여 쓰기 증가(탭 추가)
Ctrl + ] (Mac: Command + ])

 

# Outdent line, 들여 쓰기 감소(탭 제거)
Ctrl + [ (Mac: Command + [)


# Comment out 
Ctrl + / (Mac: Command + /)

# Comment in
Ctrl + / (Mac: Command + /)

# Increase font size, 글자 확대
Ctrl + . (Mac: Command + .)

# Decrease font size, 글자 축소
Ctrl + , (Mac: Command + ,)

# Move line down
Alt + Down (Mac: Option + Down)

# Move line up
Alt + Up (Mac: Option + Up)

# Select all
Ctrl + A (Mac: Command + A)

# Select downward
Shift + Down (Mac: Shift + Down)

# Select upward
Shift + Up (Mac: Shift + Up)

# Select right
Shift + Right (Mac: Shift + Right)

# Select left
Shift + Left (Mac: Shift + Left)

# Select to the end
Alt + Shift + Right (Mac: Command + Shift + Right)

# Select to the start
Alt + Shift + Left (Mac: Command + Shift + Left)

# Align text right
Ctrl + Shift + Right (Mac: Option + Right)

# Align text left
Ctrl + Shift + Left (Mac: Option + Left)

# Add multi-cursor above
Ctrl + Alt + Up (Mac: Command + Alt + Up)

# Add multi-cursor below
Ctrl + Alt + Down (Mac: Command + Alt + Down)

# Move multi-cursor from current line to the line above
Ctrl + Alt + Shift + Up (Mac: Command + Alt + Shift + Up)

# Move multi-cursor from current line to the line below
Ctrl + Alt + Shift + Down (Mac: Command + Alt + Shift + Down)

댓글