Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>MATLAB Style SectionsNew to Visual Studio Code? Get it now.
MATLAB Style Sections

MATLAB Style Sections

YoussefElgedawy

|
11 installs
| (0) | Free
MATLAB-like %% sections with dividers, folding, and emphasized titles across languages.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MATLAB Style Sections (VS Code)

Provides MATLAB-like section headers using %% across many languages.

Supported header styles

Any line that looks like a comment plus %% is treated as a section header, for example:

  • %% Section Title
  • // %% Section Title
  • # %% Section Title
  • -- %% Section Title
  • ; %% Section Title

Features

  • Renders a horizontal divider on section header lines across languages.
  • Styles section header text (%% ...) with strong emphasis.
  • Makes each section foldable with the fold chevron on the section header line.
  • Exposes %% sections in Outline/Breadcrumbs so you can jump via editor symbols.
  • Core section rendering works across languages (not tied to one parser).
  • Automatically disables itself for .m files to avoid conflicts with MATLAB extensions.
  • When your cursor is inside a section, only that section's divider lines are highlighted blue.
  • Extensive container detection supported for:
  • C/C++
  • Verilog

Settings

  • matlabSections.enabled (default: true)
  • matlabSections.decorateHeader (default: true)
  • matlabSections.showDivider (default: true)
  • matlabSections.indentAware (default: true)

Showcase

C/C++ Sections

C/C++ sections

Hierarchy

C/C++ hierarchy

Verilog Sections

Verilog sections

Python Sections

Python sections

SQL Sections

SQL sections

JavaScript Sections

JavaScript sections

INI Sections

INI sections

Even Plain Text!

Plain text sections
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft