Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Non-Breaking Space Inserter CZ/SKNew to Visual Studio Code? Get it now.
Non-Breaking Space Inserter CZ/SK

Non-Breaking Space Inserter CZ/SK

Antonín Šimkanin

| (0) | Free
Automatically inserts non-breaking spaces ( ) according to Czech and Slovak typographic rules
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Non-Breaking Space Inserter CZ/SK

Insert non-breaking spaces ( ) automatically, following Czech and Slovak typographic rules — so single-letter prepositions never end up dangling at the end of a line.

Select some text, press Ctrl+Shift+Space (Cmd+Shift+Space on Mac), and the whole selection is fixed at once.

What it does

Before

Jdu k obchodu a koupím si 5 kg jablek. Bude to stát asi 100 Kč.
Setkáme se v 15 h na náměstí atd.

After

Jdu k obchodu a koupím si 5 kg jablek. Bude to stát asi 100 Kč.
Setkáme se v 15 h na náměstí atd.

Rules

Both languages are covered, and the extension detects which one you are writing.

Czech Slovak
Single-letter prepositions k, s, v, z, o, u, i, a k, s, v, z, o, u, i, a
Numbers with units 5 kg → 5 kg 5 kg → 5 kg
Currency 100 Kč → 100 Kč 100 € → 100 €
Abbreviations atd., apod., např., tzn., resp., tj., tzv., popř. atď., napr., tzn., resp., tj., tzv., príp.
Time 10 h, 30 min, 14:15 h 10 h, 30 min, 14:15 h
Dates 1. 1. 2025, 1. ledna 2025 1. 1. 2025, 1. januára 2025
Titles and initials Mgr., Ing., doc., prof., J. Novák Mgr., Ing., doc., prof., J. Novák
Number ranges 10–15 kg, 1990–2000 10–15 kg, 1990–2000

Commands

Open the Command Palette (Ctrl+Shift+P) and type NBSP:

Command Scope
Insert   in Selection Selected text — also bound to Ctrl+Shift+Space / Cmd+Shift+Space
Insert   in Current Line The line the cursor is on
Insert   in Entire Document The whole file

Settings

Setting Default Description
nbspInserter.enableCzechRules true Apply Czech typographic rules
nbspInserter.enableSlovakRules true Apply Slovak typographic rules
nbspInserter.autoDetectLanguage true Detect the language and apply the matching rule set

With autoDetectLanguage turned off, both enabled rule sets are applied to every piece of text.

Where it works

Any text-based file — HTML, Latte templates, Markdown, plain text, and anything else you open in the editor.

Feedback

Bug reports and ideas are welcome on GitHub.

Licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft