Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>favoritesNew to Visual Studio Code? Get it now.
favorites

favorites

Howard.Zuo

|
90,086 installs
| (37) | Free
Mark resources (files or folders, local and remote) as favorites, so they can be easily accessed.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-favorites

vscode version

An extension that lets the developer mark resources (files or folders) as favorites, so they can be easily accessed.

Install

Launch VS Code Quick Open (cmd/ctrl + p), paste the following command, and press Enter.

ext install howardzuo.vscode-favorites

Usage

Add to Favorites

An Add to Favorites command in Explorer's context menu saves links to your favorite files or folders into your XYZ.code-workspace file if you are using one, else into the .vscode/settings.json file of your root folder.

Toggle Favorite for Active File

Use the Toggle Favorite command from the Command Palette (cmd/ctrl + shift + p) to quickly add or remove the currently active file from your favorites.

Toggle Folder Favorite for Active File

Use the Toggle Folder of Active File command from the Command Palette (cmd/ctrl + shift + p) to quickly add or remove the folder containing the currently active file from your favorites.

Drag and Drop Support

Reordering Favorites

You can reorder favorites within the favorites panel by dragging and dropping them to your desired position. The sort order will automatically switch to "MANUAL" when you start dragging.

Adding Files via Drag and Drop

You can also add files to your favorites by dragging them from:

  • Editor tabs: Drag the tab of an open file directly into the favorites panel
  • Explorer: Drag files or folders from the Explorer view into the favorites panel

Your favorites are listed in a separate view and can be quickly accessed from there.

Configuration

{
    "favorites.resources": [], // resources path you prefer to mark
    "favorites.sortOrder": "ASC", // DESC, MANUAL
    "favorites.saveSeparated": false // whether to use an extra config file
    "favorites.groups": ["Default"], // the groups you have created
    "favorites.currentGroup": "Default" // determine the current using group
}

You normally don't need to modify this config manually. Use context menus instead.

Changelog

Changelog on Marketplace

LICENSE

GPL v3 License

Development

Environment Setup

  1. Clone the repository:

    git clone https://github.com/leftstick/vscode-favorites.git
    cd vscode-favorites
    
  2. Install dependencies:

    pnpm install
    
  3. Run development server:

    pnpm run watch
    
  4. Launch extension:

    • Press F5 in VS Code
    • This will open a new VS Code window with the extension loaded

Build and Test

  1. Build the extension:

    pnpm run build
    
  2. Run tests:

    pnpm run test
    
  3. Package the extension:

    pnpm run package
    

Contribution Guidelines

  1. Fork the repository
  2. Create a feature branch:
    git checkout -b feature/your-feature-name
    
  3. Make your changes
  4. Run tests to ensure your changes don't break existing functionality
  5. Commit your changes with a descriptive commit message
  6. Push to your fork
  7. Create a pull request

Code Style

  • Follow TypeScript best practices
  • Use async/await for asynchronous operations
  • Add appropriate error handling
  • Write clear and concise comments
  • Maintain consistent code formatting

Development Tools

  • TypeScript: For type-safe code
  • esbuild: For fast builds
  • Mocha: For unit tests
  • VS Code Test: For extension integration tests
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft