Configuring VS Code editor for Zephyr coding style guidelines

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Configuring VS Code editor for Zephyr coding style guidelines

Configuring VS Code editor for Zephyr coding style guidelines

Anyone can Contribute to Zephyr, but all contributions must comply with the Coding Style Guidelines.  The editor in Visual Studio Code can be configured to help with these style guidelines.  This article details how to configure the editor.

In VS Code, go to File→Preferences→Settings (or use CTRL + , to open them directly). Note that these setting changes can also be restricted to the Zephyr workspace by switching the Settings tab selection from "User" to "Workspace" if desired.

The following settings help with Zephyr's style guidelines:

  • Editor: Tab Size: set to 8
  • Editor: Insert Spaces: turn off
  • Files: Trim Final Newlines: turn on
  • Files: Trim Trailing Whitespace: turn on
  • C_Cpp: Dim Inactive Regions: turn off

Return to Zephyr Knowledge Hub

No ratings
Version history
Last update:
‎01-30-2026 11:15 AM
Updated by: