반응형

Claude Code 자체에는 사용자의 메시지 색만 따로 바꾸는 설정이 없음

  • /color 원하는색 같은 명령어는 존재하지 않음 → "isn't available" 메시지가 정상 동작
  • settings.jsontheme.userMessageColor, colors.user 같은 키 없음
  • /theme·/config theme은 전체 테마만 바꾸지, "내 메시지만" 못 바꿈
  • 훅·status line·ANSI escape 같은 우회로도 메시지 표시 UI에는 적용되지 않음

원천 솔루션이 필요하면 Claude Code 안에서 /feedback으로 기능 요청.

대안: VSCode workbench.colorCustomizations로 우회

1단계: VSCode settings.json 열기

명령 팔레트(Ctrl+Shift+P) → Preferences: Open User Settings (JSON)

Windows 기본 경로:

C:\Users\<사용자>\AppData\Roaming\Code\User\settings.json

2단계: workbench.colorCustomizations 블록 추가

 "workbench.colorCustomizations": {
        //"input.background" 입력한 메세지의 배경색
        //"input.background":"#364fc7",//짙은 인디고 https://yeun.github.io/open-color/ 색상선택시
        //"input.background":"#97bfb4",//차분한 민트/세이지 톤
        "input.background":"#1d3b35",//짙은 포레스트
        //"input.background": "#ffe4ef",//핑크
        //"input.foreground" 내가 타이핑하는 글자
        //"input.foreground": "#5a1d3b",//갈색
        //"input.border": "#ff7eb6",//입력칸 테두리
        //"editor.selectionBackground": "#ffd1e8",
        //"input.placeholderForeground" 안내 문구(placeholder)
        //"input.placeholderForeground":"#3a5550",//짙은 포레스트와 비슷
  },

저장 즉시 반영 (재시작 불필요).

3단계: 특정 테마에만 적용 (선택)

전체에 영향 주기 싫으면 테마 이름으로 감싸기:

{
  "workbench.colorCustomizations": {
    "[Default Dark Modern]": {
      "input.background": "#97bfb4",
      "input.foreground": "#1a1a1a"
    }
  }
}

적용 후에도 안 바뀌면 input.background 등의 이름이 안맞아일수 있음 — DevTools로 실제 색 변수 찾기

직접 찾는 절차:

  1. Help → Toggle Developer Tools -선택하면 크롬 개발자 도구처럼 생긴게 나옴

  2. 좌상단 요소 선택 아이콘 클릭

  3. 자기 메시지/입력칸을 클릭

  4. 우측 Styles 패널에서 그 요소가 쓰는 CSS 변수 확인

    background-color: var(--vscode-chat-requestBackground);
    color: var(--vscode-foreground);
    border: 1px solid var(--vscode-input-border);
  5. 변수명에서 --vscode-를 떼면 그게 workbench.colorCustomizations의 키 이름

매핑 예시:

CSS 변수 settings.json 키
--vscode-input-background input.background
--vscode-textBlockQuote-background textBlockQuote.background
--vscode-editorWidget-background editorWidget.background

같은 화면에 보이는 색이라도:

  • var(--vscode-…) 변수로 받는 색 → settings.json으로 바꿀 수 있음 ✅
  • 직접 #xxxxxx 박혀 있는 색 → 못 바꿈 ❌

  • 그래도 안 되면 /feedback으로 기능 요청 해야함
반응형
반응형

처음 적용하고 됐는데 새 컴퓨터에 설치하니 경로이동이 안되었음 - jsconfig.json 파일을 그냥 고치고나서 해보니 다시 됨

 

{
  "compilerOptions": {
    //"module": "commonjs",
    //"target": "es6",
    "baseUrl": ".",
    "paths": {
      //"@/*/*": ["./src/*"] //not working
      "@components/*": ["./src/components/*"],
      "@component/*": ["./src/component/*"],
      "@views/*": ["./src/views/*"],
      "@page/*": ["./src/page/*"],
      "@store/*": ["./src/store/*"],
      "@hooks/*": ["./src/hooks/*"],
      "@utils/*": ["./src/utils/*"],
      "@assets/*": ["./src/assets/*"],
      "@scss/*": ["./src/scss/*"]
    }
  },
  "exclude/*": ["node_modules"]
}

 

import { useAlert, useResponsive } from "@hooks";

이 경우는 @hooks/* 로 커버안됨,

"@hooks": ["./src/hooks"], 추가해줘야함
반응형
반응형
  • alt + shift + f: 소스자동정렬
  • alt + shift + o: remove unused import
  • ctrl + g: 특정 행으로
  • ctrl + (+)/(-): Zoom in/out
  • ctrl + /: commentize
반응형
반응형

 vsCode local test: .vscode > launch.json > add the following > go to run menu > click run button

{
 "type": "java",
 "name": "Launch CdpServiceApiBatchApplication",
 "request": "launch",
 "mainClass": "com.lge.cdpsvcbatch.CdpServiceApiBatchApplication",
 "projectName": "cdp-serviceAPI-batch",
 "vmArgs": "-Dspring.profiles.active=local" // 이부분 추가해야함
}
반응형
반응형
시작라인 click -> shift + alt + 끝라인 시작점 click 다중 cursor
ctrl + shift + p
ctrl + ~
show command-line input
show terminal window
ctrl + x
ctrl + shift + k

 
ctrl + k, ctrl + s
1줄 혹은 선택영역 삭제 & 복사  
1줄 혹은 선택영역 삭제 

 
Keyboard Shortcuts 
ctrl + /
shift + alt + a
Toggle Line Comment  (//)  
Toggle Block Comment (/**/)  
alt + <
alt + >
alt + ^ 
alt + V
소스뒤로가기  
소스앞으로가기  
한줄 혹은 선택영역 위로 이동  
한줄 혹은 선택영역 아래로 이동
ctrl + shift + f 
ctrl + k, ctrl + d 
ctrl + g + #
Find in Files 
Move Last Selection to Next Find Match (=ctrl + k in Eclipse)
#행으로 이동 
Alt + Shift + O for Windows
option+Shift+O for Mac
remove unused imports
ctrl + . → 방향키로 원하는 import로 이동후 Enter add import
ctrl + (+)
ctrl + (-)
Zoom in 화면 확대 
Zoom out 화면 축소 
    • exclude: 화면 혹은 검색결과에서 원치않는 파일 안나오도록

    "files.exclude": {

        "**/yarn.lock"true,

        "**/package-lock.json"true,

    },

    "search.exclude": {

        "**/node_modules"true,

        "**/yarn.lock"true,

    },

  • Zoom in/out
    • "window.zoomLevel": 0 -> 0이 기본, 늘일수록 커짐, 10이면 너무커서난리남
    • "editor.mouseWeelZoom": true, mouseWeel로 조정가능한데 사이드바 메뉴 외에 딱 에디터화면만 조절됨
  • Coding convention
    • ctrl + shift + p > Preferences: Open Settings (JSON) 입력후 아래내용 추가하고 저장
 "[java]": {
        "editor.tabSize": 2,
        "editor.insertSpaces": true,
        "editor.formatOnSave": true
    },
    "java.format.settings.url": "https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml",
    "java.format.settings.profile": "GoogleStyle"
  • Terminal Clear하는 방법: ctrl+shift+p > Terminal: Clear 입력
  • ctrl+shift+p > Markdown: open preview
  • 여러 종류의 terminal shell 이용
  • 추천 Extension
    • gitLens: 누가 언제 이 파일 수정했는지 알려주고 별도 사이드바 창에서 각종 상태 쉽게 알수 있음
    • gitHistory: history 쉽게 보여준다는데 실행해도 반응없었음, 해결안되서 못씀

 

 

PC cleansing 후 이상현상 trouble shooting

  • Cloud 환경 사용을 위해 PC cleansing 한후 vsCode를 D drive에 설치하니 lombok에러 나고 뭔가 vsCode동작이 이상했음
  • ctrl + shift + p > Preferences: Open Settings (JSON) 를 했을 때 기존 setting json 내용도 없었음
  • vsCode 설치파일 재실행하니 해결되었음

2019/10/07 java build가 안되며 java dependenccies도 나오지 않고 작동이 안됨, Problems에도 내용안뜸

  • 껐다 키면 sorry something went wrong activating intellicode support for java 에러박스 나옴
  • vs intellicode, java extension pack등 java관련 extension 다 uninstall했다 reinstall해도 해결되지 않음
  • 결국 vsCode 1.38.1로 업데이트하니 해결됨
  • queryDSL 관련 auto-generated source도 인식안되어 확인해보니 .classpath에 추가한 부분이 지워져있음
  • .classpath에 다시 추가하여 결국 다 해결함. 힘들다;;;

2019/10/14 window login에러로 포맷후 vsCode 재설치후 lombok인식안되고 get/set 인식안됨으로 인한 대규모 에러

반응형
반응형

참조페이지:  

https://noooop.tistory.com/entry/VS-Code%EC%97%90%EC%84%9C-ESLint-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0-1-%EA%B8%B0%EB%B3%B8-%EC%84%A4%EC%A0%95

 

VS Code에서 ESLint 사용하기 - 1. 기본 설정

2018/05/29 - [이것저것 컴퓨터로 한 것들] - VS Code에서 ESLint 사용하기 - 2. ESLint 설정 취미(?) 및 공부 목적으로 VS Code(Visual Studio Code)를 통해 Javascript 공부를 하면서, ESLint를 사용해 볼 생각..

noooop.tistory.com

  1. Visual Studio Code eslint 확장설치
  2. yarn add -dev eslint 또는 npm --save-dev eslint 명령어로 eslint 패키지 설치 - 이건 안했음
  3. ctrl + shift + p로 명령팔레트 연 다음 create ESLINT Configuration 입력하여 eslint 초기설정
    1. 이걸 하니까 yes/no 선택하고 옵션 선택하는게 있었고 뭐든 선택하니 뭔가가 설치되었음
  4. 그리고 나서 yarn start 하니까 다음 에러 발생
There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.

The react-scripts package provided by Create React App requires a dependency:

  "eslint": "5.12.0"

Don't try to install it manually: your package manager does it automatically.
However, a different version of eslint was detected higher up in the tree:

  /home/ibs/todo-list/node_modules/eslint (version: 5.16.0) 

Manually installing incompatible versions is known to cause hard-to-debug issues.

If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That will permanently disable this message but you might encounter other issues.

To fix the dependency tree, try following the steps below in the exact order:

  1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
  2. Delete node_modules in your project folder.
  3. Remove "eslint" from dependencies and/or devDependencies in the package.json file in your project folder.
  4. Run npm install or yarn, depending on the package manager you use.

In most cases, this should be enough to fix the problem.
If this has not helped, there are a few other things you can try:

  5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead.
     This may help because npm has known issues with package hoisting which may get resolved in future versions.

  6. Check if /home/ibs/todo-list/node_modules/eslint is outside your project directory.
     For example, you might have accidentally installed something in your home folder.

  7. Try running npm ls eslint in your project folder.
     This will tell you which other package (apart from the expected react-scripts) installed eslint.

If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That would permanently disable this preflight check in case you want to proceed anyway.

P.S. We know this message is long but please read the steps above :-) We hope you find them helpful!

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

 

 

  

  

반응형

+ Recent posts