Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>BCON Syntax highlightingNew to Visual Studio Code? Get it now.
BCON Syntax highlighting

BCON Syntax highlighting

yobonez

|
6 installs
| (0) | Free
Syntax highlighting support for BCON.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

BCON Syntax Highlighting for VS Code

BCON

Syntax highlighting extension for BCON (BCON Configures Only Nicely) configuration language.

Features

  • ✨ Full syntax highlighting for .bcon files
  • 🎨 Support for all BCON language features:
    • Keywords: import, use, as, from, export, skip, class, extends, includes
    • Comments: single-line (#) and multi-line ('...')
    • String interpolation with [Main.property] and [This.property]
    • Data types: strings, numbers, BigInt, booleans, dates, regex, files
    • Special constants: True, False, Null, Undefined, NaN, Infinity
    • Array (@*) and dictionary (@key) syntax
    • Destructuring and imports
    • Classes with type validation (BCON 2.2.0+):
      • Class definitions with fields and types
      • Type annotations (:) for primitive and custom types
      • Optional fields (?) and default values (=)
      • Class inheritance with extends
      • Primitive types: String, Number, Boolean, BigInt, Date, RegExp, Array, Object, Any
  • 📝 Proper tokenization for semantic highlighting

Get BCON Parser

https://github.com/parrotcore/bcon-parser

Installation

Install from VS Code Marketplace or search for "BCON Syntax highlighting" in VS Code extensions.

Recommended Extensions

For enhanced productivity when working with BCON files, we recommend:

  • Path Intellisense - Autocompletes file paths in import statements

Setup Path Intellisense for BCON

After installing Path Intellisense, it should work automatically in strings. If you want to customize it, add to your VS Code settings (Ctrl+, → Open Settings JSON):

{
  "path-intellisense.mappings": {
    "./": "${workspaceRoot}"
  },
  "path-intellisense.extensionOnImport": true,
  "path-intellisense.autoSlashAfterDirectory": true
}

Then when typing:

import "./

You'll see file and folder suggestions.

Example

# Single line comment
'Multi-line comment'

import [cityType] from "./cityTypes.bcon".utf8;

use "production" as environment;
use 8080 as port;

# Class definition with type validation
class City [
    @name: String;
    @population: Number;
    @founded?: Date;
    @coordinates: [
        @lat: Number;
        @lon: Number;
    ];
];

# Class inheritance
class CapitalCity extends City [
    @parliament: String;
    @isCapital: Boolean = True;
];

# Creating class instances
use City [
    @name => "Warsaw";
    @population => 1720000;
    @coordinates => [
        @lat => 52.2297;
        @lon => 21.0122;
    ];
] as warsaw;

export [
    @environment => environment;
    @port => port;
    @city => warsaw;
    @greeting => "Welcome to [Main.environment]!";
];

License

MIT

Links

  • BCON Parser: github.com/parrotcore/bcon-parser
  • npm: npmjs.com/package/bcon-parser
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft