Filter Bookmarked Lines - Visual Studio Code Extension
The "Filter Bookmarked Lines" extension for Visual Studio Code provides a convenient way to filter out lines in the text editor based on debugger breakpoints. It allows users to remove either bookmarked or non-bookmarked lines from the active text document.
Remove Bookmarked Lines:
Command: FBL: Remove Bookmarked Lines
Keybinding: Ctrl+Alt+1 (Windows/Linux) or Ctrl+Cmd+1 (Mac)
Removes lines corresponding to debugger breakpoints.
Remove Non-Bookmarked Lines:
Command: FBL: Remove Non-Bookmarked Lines
Keybinding: Ctrl+Alt+2 (Windows/Linux) or Ctrl+Cmd+2 (Mac)
Removes lines not corresponding to debugger breakpoints.
Enable Breakpoints Everywhere:
Command: FBL: Enable Breakpoints Everywhere
Enables breakpoints everywhere in the code.
Disable Breakpoints Everywhere:
Command: FBL: Disable Breakpoints Everywhere
Disables breakpoints everywhere in the code.
Open Visual Studio Code.
Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X).
Search for "Filter Bookmarked Lines".
Click "Install" to install the extension.
Open a file in the text editor.
Use the provided commands to filter lines based on breakpoints.
The Enable Breakpoints Everywhere command should be run only the first time of usage. This sets the necessary configuration to allow breakpoints everywhere in the code.
Comparison with Notepad++
Visual Studio Code lacked a built-in functionality to filter lines based on debugger breakpoints, which Notepad++ offered. With the "Filter Bookmarked Lines" extension, users can now enjoy a similar feature in Visual Studio Code, enhancing their coding experience.