본문 바로가기
IT/Middleware

VSCODE 문자열 일괄 변경 (전체 변경)

by TechTonic 2023. 6. 27.
반응형

워크스페이스의 파일에서 특정 문자열을 일괄로 변경해야 될 상황이 있습니다.

이럴 땐 VSCODE를 사용하여 쉽게 변경할 수 있습니다.

VSCODE

 

VSCODE 설치

아래 VSCODE 홈페이지에서 다운로드할 수 있습니다. (설치 과정은 생략)

https://code.visualstudio.com/

 

Visual Studio Code - Code Editing. Redefined

Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications.  Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.

code.visualstudio.com

 

문자열 일괄 변경 방법

1. 변경하고자 하는 문자열을 드래그합니다.

VSCODE 파일

2. 드래그된 상태에서 Ctrl + Shift + L을 입력합니다.

'Ctrl + Shift + L'을 입력하면 동일한 문자열들이 드래그된 상태가 됩니다.

VSCODE 드래그 상태

 

3. 변경할 문자열로 수정하면 드래그된 문자열들이 일괄 변경 됩니다.

VSCODE 문자열 일괄 변경

 

반응형

댓글