Customize your SharePoint Column, View or Form Layout Formatting JSON using a full-featured editor instead of the default one. Supports Google Chrome and Microsoft Edge (Chromium).
- Live Preview as you type (no need to click "Preview" button)
- Intellisense (suggestions) based on Column or View formatting schema, CSS styles, replaceable tokens (
@currentField
, list fields with$
based on the context) - JSON validation with error messages in the editor
- Help tooltips for JSON properties
- Color highlights
- Line numbers, brace matching, collapsible regions
- Hotkeys: search, replace, format document, go to line and more (read more on hotkeys further below)
- Easily switch between default and enhanced editor
- VSCode integration (change JSON in VSCode and see live updates in SharePoint)
- Split screen mode
- SharePoint Online
- SharePoint 2019 (through a separate extension, read more here)
- CTRL + F: Search
- CTRL + Space: Explicitly request suggestions
- CTRL + G: Go to line
- SHIFT + ALT + F: Format document
- F1: Show command palette
... and some others available in VSCode's monaco editor.
You can edit your Column Formatting JSON inside VSCode and have it synchronized to a browser with live preview.
- SP Formatter VSCode extension needs to be installed.
- http port
11232
to be opened for connections
- In VSCode open desired file with Column Formatting JSON (a file should have
.json
extension) - Right click on a file and run
SP Formatter: start a new session
command - Launch your browser with SP Formatter web extension. Enable SP Formatter and open any json formatting on a SharePoint page.
- Wait for
VSCode is connected
message with a file name from VSCode instance. - Edit file in VSCode and see live results in a browser.
-
If you have SP Formatter web extension enabled and navigate between different SharePoint pages, SP Formatter might not work properly (or not work at all).
SP Formatter "loses" context when you navigate between SharePoint pages in a same browser tab because of the async navigation nature in SPO. It's hard to track such navigation from the extension code.
How to fix: Just open a page, where you're going to format view\columns and perform a page refresh (F5) or hard refresh (CTRL + F5). Now SP Formatter should work as normal
-
If you're switching between Column\View formatting, or choosing different columns for Column formatting, or choosing different form layout options (Body, Header, Footer), you should always re-enable SP Formatter using toggle button, so that it picks the right context.
SP Formatter does not collect nor store any personal data.