Skip to main content

Major Mode

Major mode offers dynamic menu and functions based on the active buffer. You can access key bindings specific to the current major mode by pressing <spc> m or , if you want to save one keystroke.

tip

If , isn't bound, you might need to update your settings. You can add the necessary keybindings to your settings.json by pressing Ctrl+Shift+p and running the command "VSpaceCode: Configure Default Settings". More information can be found in the Installation for instructions.

note

The default configuration uses , as the shortcut to major mode, that will override the vim "find previous match" after a f{character}. You can follow the instructions in Troubleshooting to remove or modify this shortcut.

For example, you can press <spc> m x b to make the text bold in a markdown buffer.

To find the active language mode of your current buffer, you can look at the bottom right of the status bar.

major mode position

The major mode is using which-key's conditional bindings. If you want to modify the default bindings, check out the conditional bindings docs.

The vast majority of major mode specific key bindings will require the installation of additional extensions in order to work properly. The section below lists all the extensions required by each major mode.

In the following you can see all the currently available major modes. If your favorite one is missing, please contribute!

Agda

Required extensions:

Clojure

Required extensions:

Documentation:

Coq

Required extensions:

C++

Required extensions:

CUDA-C++

Required extensions:

C#

Required extensions:

Dart/Flutter

Required extensions:

Elixir

Required extensions:

Go

Required extensions:

F#

Required extensions:

Java

Required extensions:

These extensions are all included in the Extension Pack for Java.

Documentation: Java in Visual Studio Code

Julia

Required extensions:

Markdown

Required extensions:

Pascal

Required extensions:

PHP

Required extensions:

Python

Required extensions:

Quarto

Required extensions:

R

Required extensions:

Ruby

Required extensions:

Rust

Required extensions:

LaTeX

Required extensions: