Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VS Code Activity Bar

VS Code Activity Bar

The Activity Bar is a vertical toolbar on the left side of VS Code that provides quick access to different features and views.

Through the Activity Bar, users can easily switch between File Explorer, Search, Source Control, Debug, Extensions, and other features.


Main functions of the Activity Bar

1. File Explorer (Explorer)

File Explorer is the first icon in the Activity Bar, usually a folder icon; when clicked, it displays all files and folders in the current workspace. You can browse, open, create, delete, or rename files here.

2. Search

The Search feature allows you to find specific text or code snippets throughout the entire project; after clicking the search icon (magnifying glass), you can enter keywords, and VS Code will match and display all relevant results in the project.

You can set file types and files to exclude in the input box.

3. Source Control

Source Control integrates Git, allowing you to perform version control operations directly in VS Code; we can view file change status, commit code, create branches, and more.

4. Debug

Debugging is one of the very powerful tools in VS Code; we can set breakpoints, step through code, inspect variable values, and more, helping you quickly locate and fix problems in your code.

5. Extensions

The Extensions feature allows you to install and manage VS Code plugins.

Through extensions, we can add new language support, themes, tools, and other features to VS Code, greatly expanding the editor's capabilities.


Customizing the Activity Bar

VS Code allows users to customize what is shown in the Activity Bar; you can right-click the status bar to control whether feature icons are displayed — a checkmark means shown, otherwise not:

You can also set the status bar to be displayed on the right:

If you are not used to right-clicking the Activity Bar on the right, you can move it back: