Overview Version History Q & A Rating & Review
English | 简体中文
FileComments is a Visual Studio Code extension that allows you to add, edit, and delete comments in files, and display these comments in the file explorer.
Features
Add comments to files
Edit existing comments
Delete comments
Toggle comment display
Display comments in the file explorer
Customize comment styles
Installation
Clone this repository to your local machine:
git clone https://github.com/Ttbyl/filecomments.git
Navigate to the project directory and install dependencies:
cd filecomments
npm install
Compile the extension:
npm run compile
Open the project directory in VS Code and press F5
to run the extension.
Usage
Right-click on a file in the file explorer and select Add Comment
.
Choose the comment type and enter the comment content.
Find the file with the comment in the file explorer.
Right-click on the file and select Edit Comment
.
Find the file with the comment in the file explorer.
Right-click on the file and select Delete Comment
.
Click the Toggle Comments
button in the status bar to toggle the display of comments.
You can extend the default comment styles by adding custom styles in settings.json
:
"fileComments.customStyles": {
"customStyle": {
"icon": "🔧",
"color": "charts.purple",
"label": "Custom"
}
}