Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>File Ref TagsNew to Visual Studio Code? Get it now.
File Ref Tags

File Ref Tags

LiRenTech

|
1 install
| (0) | Free
VSCode extension for managing and quickly accessing code references, allowing users to add files, code snippets, and comments to a reference panel for quick navigation.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

File Ref Tags - VSCode Code Reference Management Extension

Overview

File Ref Tags is a VSCode extension for managing and quickly accessing code references. It allows users to add files, code snippets, and comments to a reference panel, enabling fast navigation to corresponding locations and improving development efficiency for large projects.

Features

Core Features

  • Add Current File: Add the current open file to the reference panel
  • Add File + Snippet: Add the current file and selected code snippet to the reference panel
  • Add Global Snippet: Add the selected globally unique snippet to the reference panel
  • Add User Comment: Add custom comments to the reference panel
  • Type Color Differentiation: Different colors for different types of reference items
    • File: Deep blue
    • File + Snippet: Deep pink
    • Global Snippet: Deep purple
    • Comment: Deep green
  • Drag and Drop Sorting: Support dragging to reorder reference items
  • Quick Jump: Click reference items to quickly jump to corresponding locations
  • Edit Title: Hover to show edit button, click to modify title in popup
  • Delete Reference: Hover to show delete button, click to delete reference items
  • View Storage Location: Show the storage location of reference data

Installation

  1. Open VSCode
  2. Click the Extensions icon in the left activity bar (or press Ctrl+Shift+X)
  3. Enter "File Ref Tags" in the search box
  4. Click the "Install" button
  5. After installation, click the "Enable" button

Usage

1. Open Reference Panel

Find the "File Ref Tags" icon in the left activity bar of VSCode and click to open the reference panel.

2. Add Reference Items

2.1 Add Current File

  • Open the file you want to add
  • Right-click in the editor, select "FileRefTags" → "Add Current File to Panel"
  • Or use the command palette (Ctrl+Shift+P) and enter "FileRefTags: Add Current File to Panel"

2.2 Add Current File + Selected Snippet

  • Open a file and select the code snippet you want to add
  • Right-click in the editor, select "FileRefTags" → "Add Current File + Selected Snippet to Panel"
  • Or use the command palette and enter "FileRefTags: Add Current File + Selected Snippet to Panel"

2.3 Add Selected Globally Unique Snippet

  • Open a file and select the code snippet you want to add
  • Right-click in the editor, select "FileRefTags" → "Add Current Selected Globally Unique Snippet to Panel"
  • Or use the command palette and enter "FileRefTags: Add Current Selected Globally Unique Snippet to Panel"
  • The extension will automatically search the workspace to ensure the snippet is unique

2.4 Add User Comment

  • Right-click in the editor, select "FileRefTags" → "Add User Comment to Panel"
  • Or use the command palette and enter "FileRefTags: Add User Comment to Panel"
  • Enter the comment content in the popup input box and click OK

3. Manage Reference Items

3.1 Edit Reference Item Title

  • Hover over the reference item, an edit button will appear on the right
  • Click the edit button, modify the title in the popup window
  • Click the "Save" button or press Enter to save
  • Click the "Cancel" button or press Escape to cancel

3.2 Delete Reference Item

  • Hover over the reference item, a delete button will appear on the right
  • Click the delete button, the reference item will be deleted

3.3 Drag and Drop Sorting

  • Click and drag the reference item to the target position
  • Release the mouse, the reference item will be moved to the new position

3.4 Jump to Reference Location

  • Click the reference item, the extension will automatically jump to the corresponding file or code snippet
  • For file + snippet and global snippet types, the corresponding code snippet will be automatically selected

3.5 View Storage Location

  • Click the "Show Storage Location" button at the bottom of the reference panel
  • The extension will show the JSON file that stores the reference data in the file explorer

Data Storage

Reference data is stored in the references.json file under VSCode extension's global storage directory, which can be viewed through the "Show Storage Location" button.

Technical Features

  • Lightweight and Efficient: Low resource usage, fast response speed
  • Easy to Use: Simple operation, easy to get started
  • Clear Visuals: Color differentiation for different types of reference items, clear at a glance
  • Space Efficient: Compact layout design, maximizing display space
  • Comprehensive Functions: Support multiple reference types and operation methods

System Requirements

  • VSCode Version: ^1.107.0
  • Operating System: Supports Windows, macOS, and Linux

Changelog

v0.0.1

  • Initial version
  • Support adding files, file + snippet, global snippet, and comments
  • Support drag and drop sorting and quick jumping
  • Support editing reference item titles
  • Support color differentiation for different types of reference items

Feedback and Suggestions

If you encounter any issues or have any suggestions during use, welcome to submit Issues or Pull Requests in the GitHub repository.

License

This project uses the MIT License, copyright belongs to LiRenTech.


Enjoy coding with File Ref Tags!


File Ref Tags - VSCode 代码引用管理插件

功能介绍

File Ref Tags 是一个 VSCode 扩展插件,用于管理和快速访问代码引用。它允许用户将文件、代码片段和注释添加到引用面板中,并通过点击快速跳转到对应的位置,提高大型项目的开发效率。

核心功能

  • 添加当前文件:将当前打开的文件添加到引用面板
  • 添加文件+片段:将当前文件和选中的代码片段添加到引用面板
  • 添加全局片段:将当前选中的全局唯一片段添加到引用面板
  • 添加用户注释:添加自定义注释到引用面板
  • 类型颜色区分:不同类型的引用项显示不同颜色
    • 文件:深蓝色
    • 文件+片段:深粉色
    • 全局片段:深紫色
    • 注释:深绿色
  • 拖拽排序:支持拖拽调整引用项顺序
  • 快速跳转:点击引用项快速跳转到对应位置
  • 编辑标题:鼠标悬浮显示编辑按钮,点击弹窗修改标题
  • 删除引用:鼠标悬浮显示删除按钮,点击删除引用项
  • 查看存储位置:显示引用数据的存储位置

安装方法

  1. 打开 VSCode
  2. 点击左侧活动栏的扩展图标(或按 Ctrl+Shift+X)
  3. 在搜索框中输入 "File Ref Tags"
  4. 点击 "安装" 按钮
  5. 安装完成后,点击 "启用" 按钮

使用说明

1. 打开引用面板

在 VSCode 左侧活动栏中找到 "File Ref Tags" 图标,点击即可打开引用面板。

2. 添加引用项

2.1 添加当前文件

  • 打开需要添加的文件
  • 右键点击编辑器,选择 "FileRefTags" → "添加当前文件到面板"
  • 或使用命令面板 (Ctrl+Shift+P) 输入 "FileRefTags: 添加当前文件到面板"

2.2 添加当前文件+选中的片段

  • 打开文件,选中需要添加的代码片段
  • 右键点击编辑器,选择 "FileRefTags" → "添加当前文件+选中的片段到面板"
  • 或使用命令面板输入 "FileRefTags: 添加当前文件+选中的片段到面板"

2.3 添加当前选中的全局唯一片段

  • 打开文件,选中需要添加的代码片段
  • 右键点击编辑器,选择 "FileRefTags" → "添加当前选中的全局唯一片段到面板"
  • 或使用命令面板输入 "FileRefTags: 添加当前选中的全局唯一片段到面板"
  • 插件会自动搜索工作区,确保片段是唯一的

2.4 添加用户注释

  • 右键点击编辑器,选择 "FileRefTags" → "添加用户注释到面板"
  • 或使用命令面板输入 "FileRefTags: 添加用户注释到面板"
  • 在弹出的输入框中输入注释内容,点击确定

3. 管理引用项

3.1 编辑引用项标题

  • 将鼠标悬浮在引用项上,右侧会显示编辑按钮
  • 点击编辑按钮,在弹出的窗口中修改标题
  • 点击 "保存" 按钮或按 Enter 键保存
  • 点击 "取消" 按钮或按 Escape 键取消

3.2 删除引用项

  • 将鼠标悬浮在引用项上,右侧会显示删除按钮
  • 点击删除按钮,引用项将被删除

3.3 拖拽排序

  • 点击并拖拽引用项到目标位置
  • 释放鼠标,引用项将被移动到新位置

3.4 跳转到引用位置

  • 点击引用项,插件会自动跳转到对应的文件或代码片段
  • 对于文件+片段和全局片段,会自动选中对应的代码片段

3.5 查看存储位置

  • 点击引用面板底部的 "Show Storage Location" 按钮
  • 插件会在文件资源管理器中显示存储引用数据的 JSON 文件

数据存储

引用数据存储在 VSCode 扩展的全局存储目录下的 references.json 文件中,路径可以通过 "Show Storage Location" 按钮查看。

技术特点

  • 轻量高效:占用资源少,响应速度快
  • 易于使用:操作简单,上手容易
  • 视觉清晰:不同类型引用项颜色区分,一目了然
  • 空间高效:紧凑的布局设计,最大化显示空间
  • 功能全面:支持多种引用类型和操作方式

系统要求

  • VSCode 版本:^1.107.0
  • 操作系统:支持 Windows、macOS 和 Linux

更新日志

v0.0.1

  • 初始版本
  • 支持添加文件、文件+片段、全局片段和注释
  • 支持拖拽排序和快速跳转
  • 支持编辑引用项标题
  • 支持不同类型引用项的颜色区分

反馈与建议

如果您在使用过程中遇到问题或有任何建议,欢迎在 GitHub 仓库提交 Issue 或 Pull Request。

许可证

本项目采用 MIT License 许可证,版权归 LiRenTech 所有。


Enjoy coding with File Ref Tags!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft