ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Cursor IDE에서 settings.json 설정
    Tool/VSCode&Cursor 2025. 8. 14. 11:33

    이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.

     

    Cursor IDE에서 자체적으로 파일들을 제외하는 방법

    • files.exclude: 파일 탐색기에서 특정 폴더/파일을 숨기는 설정
    {
      // 기존 설정들...
      
      "files.exclude": {
        "**/bin": true,
        "**/.DS_Store": true,
        "**/node_modules": true,
        "**/.git": false,  // git 폴더는 보이도록
        "**/.idea": true,   // IntelliJ 설정 숨김
        "**/build": false   // build 폴더는 보이도록
      }
    }

     

    • search.exclude: 검색 시 특정 폴더를 제외
    {
      // 기존 설정들...
      
      "search.exclude": {
        "**/bin": true,
        "**/build": true,
        "**/node_modules": true,
        "**/.git": true,
        "**/.idea": true
      }
    }

     

    • files.watcherExclude: 파일 변경 감시에서 제외(성능 향상)
    {
      // 기존 설정들...
    
      "files.watcherExclude": {
        "**/bin/**": true,
        "**/build/**": true,
        "**/node_modules/**": true,
        "**/.git/objects/**": true,
        "**/.git/subtree-cache/**": true,
        "**/node_modules/*/**": true
      }
    }

     

    • 특정 확장자 숨기기: 특정 확장자 파일들만 숨긴다.
    {
      // 기존 설정들...
    
      "files.exclude": {
        "**/*.class": true,     // Java 컴파일 파일
        "**/*.tmp": true,       // 임시 파일
        "**/*.log": true,       // 로그 파일
        "**/.DS_Store": true    // macOS 파일
      }
    }

     

    개인 설정 내용

    • settings.json
    {
      "workbench.tree.indent": 14,
      "gitlens.hovers.currentLine.over": "line",
      "gitlens.defaultDateFormat": "YYYY-MM-DD",
      "gitlens.codeLens.scopes": ["document", "containers"],
      "gitlens.statusBar.format": "${agoOrDate}${' via 'pullRequest}${message|10?}${author}",
      "gitlens.blame.format": "${committerDate}, ${author}",
      "editor.tabSize": 2,
      "editor.stickyScroll.enabled": true,
      "editor.formatOnSave": true,
      "java.jdt.ls.java.home": "",
      "spring-boot.ls.java.home": "",
      "redhat.telemetry.enabled": true,
      "java.configuration.runtimes": [],
      "workbench.iconTheme": "material-icon-theme",
      "workbench.activityBar.orientation": "vertical",
      "gradle.javaDebug.cleanOutput": true,
    
      // Java 설정들
      "java.import.gradle.enabled": true,
      "java.import.gradle.wrapper.enabled": true,
      "java.configuration.updateBuildConfiguration": "automatic",
      "java.autobuild.enabled": true,
      "java.project.outputPath": "build/classes",
      // "java.project.outputPath": "build/classes/java/main",
      // "java.test.outputPath": "build/classes/java/test",
      "java.eclipse.downloadSources": false,
      "java.configuration.maven.userSettings": null,
      "java.server.launchMode": "Standard",
    
      // Cursor IDE의 파일 탐색기에서 특정 폴더/파일을 숨기는 설정
      "files.exclude": {
        "**/bin": true, // bin 폴더 완전 숨김
        "**/.DS_Store": true, // macOS 시스템 파일
        "**/Thumbs.db": true, // Windows 썸네일 파일
        "**/.gradle": true, // Gradle 캐시 폴더
        "**/build/tmp": true, // 임시 빌드 파일들
        "**/build/reports": true, // 빌드 리포트
        "**/*.class": false // class 파일은 보이도록 (필요시)
      },
    
      // 검색 시 특정 폴더를 제외
      "search.exclude": {
        "**/bin": true,
        "**/build": true,
        "**/node_modules": true,
        "**/.git": true,
        "**/.idea": true
      },
    
      // files.watcherExclude로 파일 감시 제외, 파일 변경 감시에서 제외 (성능 향상)
      "files.watcherExclude": {
        "**/bin/**": true,
        "**/build/**": true,
        "**/node_modules/**": true,
        "**/.git/objects/**": true,
        "**/.git/subtree-cache/**": true,
        "**/node_modules/*/**": true
      },
      "gradle.javaDebug": {
        "tasks": ["run", "runBoot", "test", "intTest", "integration"]
      }
    }

     

     

     

     

    이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.

    댓글

Designed by Tistory.