728x90
개발을 하다보면 ctrl
+ shift
+ f
로 문자열을 찾는 것은 많이 할 수 밖에 없다.
그렇다면 특정 문자열이 없는 파일은 어떻게 찾아야 할까?
Visual Studio의 Developer Command Prompt를 이용하면 된다.
아래는 Master File이 없는 aspx 파일을 찾을 때 사용한 예시다.
전체 aspx 파일(*.aspx
)에서 MasterPageFile
문자열이 없는 파일 목록을 출력한다.
@for /r %f in (*.aspx) do @find "MasterPageFile" "%f" > nul || echo %f
실행하면 다음과 같이 파일 목록들이 출력된다.

cmd에서 사용해도 된다.

참고
728x90
'Programming > Visual Studio, VSC' 카테고리의 다른 글
[Visual Studio] 외부 라이브러리 코드(External Code) 디버깅하기 (0) | 2024.02.16 |
---|---|
C# private field naming 규칙 설정하기(editorconfig, IDE) (0) | 2024.02.10 |
Visual Studio 2022 preview 업데이트하는 법 (2) | 2023.08.28 |
[Visual Studio 2019] Hot Reload 기능 추가(Apply Code Changes) (0) | 2021.08.19 |
Visual Studio의 Task List 기능 사용하기 (0) | 2021.07.12 |
댓글