VS Code에서 채팅 프롬프트 예시
이 문서는 다양한 시나리오 및 에이전트에서 Visual Studio Code의 채팅에 대한 예시 프롬프트를 제공합니다. 이러한 예시를 바탕으로 자신만의 개발 작업을 위한 효과적인 프롬프트를 작성해 보세요.
VS Code에서 채팅을 처음 사용하는 경우 채팅 시작하기에 대해 자세히 알아보거나 프롬프트 작성 모범 사례를 검토하세요.
일반 코딩 및 기술 질문
VS Code에서 채팅을 사용하여 코딩 개념, 기술 주제 및 일반 프로그래밍 질문에 대한 빠른 답변을 얻으세요.
What is a linked list?
Provide 3 ways to implement a search feature in React.
Explain the difference between async/await and promises.
코드베이스 이해 및 탐색
VS Code에서 채팅을 사용하여 프로젝트가 작동하는 방식을 이해하고, 특정 기능을 찾거나, 코드 관계를 탐색하세요.
Explain how authentication works in #codebase
Where is the database connection string configured? #codebase
How do I build this #codebase?
Which testing framework is used for #calculator.test.js?
코드 생성 및 편집
VS Code에서 채팅을 사용하여 새 코드를 생성하고, 기능을 추가하거나, 기존 기능을 수정하세요.
Add a login button and style it based on #styles.css
Create a meal-planning web app using React and Node.js
Refactor this code to use async/await
테스트 및 품질 보증
VS Code에서 채팅을 사용하여 테스트를 생성하거나 실패하는 테스트를 수정하세요.
Add unit tests for the user service.
Fix the failing tests #testFailure
디버깅 및 문제 해결
VS Code에서 채팅을 사용하여 코드 문제를 식별하고 수정하세요.
Fix the issues in #problems
Fix the failing tests #testFailure
Why is this function returning undefined?
소스 제어 작업
VS Code에서 채팅을 사용하여 보류 중인 변경 사항을 작업하고 릴리스 문서를 생성하세요.
Summarize the #changes
Generate release notes based on the #changes
Summarize the changes in #changes
외부 리소스 작업
VS Code에서 채팅을 사용하여 웹 또는 GitHub 리포지토리의 콘텐츠를 참조하세요.
How do I use the 'useState' hook in react 18? #fetch https://18.react.dev/reference/react/useState#usage
Build an API endpoint to fetch address info, use the template from #githubRepo contoso/api-templates
What are the top #extensions for this workspace?
터미널 및 명령줄 작업
터미널 인라인 채팅을 사용하여 셸 명령 및 터미널 작업에 대한 도움을 받으세요.
How do I install npm packages?
List the top 5 largest files in the src directory
undo the last git commit
Jupyter 노트북 작업
VS Code에서 채팅을 사용하여 Jupyter 노트북을 생성, 편집 및 작업하세요.
/newNotebook use pandas and seaborn to read and visualize the titanic dataset. Show key information from the dataset.
Create a notebook to read data from #housing.csv and plot the distribution of prices
Make sure the data is cleaned before visualizing and processing it
Show the correlation between different features in the dataset
효과적인 프롬프트 작성 팁
- 구체적으로 작성하세요: 달성하려는 내용, 사용할 기술, 예상되는 출력 형식에 대한 세부 정보를 포함하세요.
- 컨텍스트를 추가하세요: #-멘션을 사용하여 파일, 기호 또는
#codebase,#changes,#problems와 같은 컨텍스트 변수를 참조하세요. - 반복하세요: 간단한 프롬프트로 시작하여 응답을 기반으로 다듬으세요. 결과를 개선하기 위해 후속 질문을 하세요.
- 복잡한 작업을 분해하세요: 한 번에 모든 것을 요청하는 대신, 큰 작업을 작고 관리 가능한 단계로 나누세요.
프롬프트 작성 모범 사례 및 프롬프트에 컨텍스트 추가하기에 대해 자세히 알아보세요.
관련 리소스
-
GitHub 문서의 Copilot Chat Cookbook