Official Visual Studio Code extension for the Cloth programming language. This extension provides syntax highlighting and language support for .co, .cloth, and .clib files.
This extension provides comprehensive syntax highlighting for the Cloth programming language, including:
- Keywords and Control Flow: Full support for
if,else,for,while,switch,case,return, and more - Type System: Highlighting for primitive types (
i8,i16,i32,i64,u8,u16,u32,u64,f32,f64,bool,string,char,void,any) - Memory Management: Syntax highlighting for
new,delete,ref,shared,owned,atomic - Object-Oriented Features: Support for
class,struct,interface,enumdeclarations - Function Declarations: Proper highlighting for function definitions
- Operators: Complete operator support including arithmetic, logical, comparison, and special operators
- Comments: Both single-line (
//) and multi-line (/* */) comment support - String Literals: Support for both single and double-quoted strings with escape sequences
- Number Formats: Decimal, hexadecimal (
0x), binary (0b), and floating-point numbers - Meta Keywords: Built-in keywords like
SIZEOF,TYPEOF,LENGTH,ALIGNOF,MEMSPACE - Modifiers: Access modifiers (
public,private,internal) and qualifiers (static,abstract,final,override) - Module System:
moduleandimportstatement highlighting - Custom File Icons: Dedicated file icons for
.co,.cloth, and.clibfiles
.co- Primary Cloth source files.cloth- Alternative Cloth source files.clib- Cloth library files
- Open Visual Studio Code
- Press
Ctrl+P(orCmd+Pon macOS) to open the Quick Open dialog - Type
ext install Cloth.clothand press Enter - Reload Visual Studio Code when prompted
Alternatively, you can install the extension from the Visual Studio Code Marketplace.
- Visual Studio Code version 1.109.0 or higher
This extension does not contribute any VS Code settings at this time.
None currently. Please report issues on the GitHub repository.
Initial release of Cloth Language Support:
- Complete syntax highlighting for Cloth language
- Support for
.co,.cloth, and.clibfile extensions - Custom file icons
- Comprehensive pattern matching for all language constructs
Cloth is a modern programming language designed for system programming with a focus on memory safety and performance. For more information, visit the official Cloth website.
Contributions are welcome! Please feel free to submit issues or pull requests.
This extension is provided by Cloth Foundation.
Enjoy coding in Cloth!