FluxSharp VS Code Extension
Professional syntax highlighting and language support for FluxSharp - A Modern, Fast & Secure Programming Language (v1.0.3+)
Features
✨ Complete Syntax Highlighting
- Keywords (control flow, declarations, modifiers)
- Type system (primitives, custom types)
- String and character literals with escape sequences
- Number literals (hex, binary, octal, decimal, float, double)
- Comments (single-line and block)
- Operators (arithmetic, logical, bitwise, assignment)
📝 Language Support
.fsh file extensions
- Class and struct declarations
- Function definitions and calls
- Array operations and access
- Attributes and decorators
- Control flow structures
🎨 Smart Editor Features
- Bracket matching and auto-closing pairs
- Proper indentation handling
- Comment toggling
- Line and block comment support
🎨 Professional Color Themes (C# Style)
- FluxSharp Dark - Modern dark theme inspired by Visual Studio Dark+
- FluxSharp Light - Light theme matching Visual Studio Light (Blue) theme
- Keywords in blue
- Types in teal/cyan
- Strings in red/orange
- Numbers in green
- Comments in gray-green
- Full support for all language constructs
🔧 Automatic Setup
- Downloads FluxSharp v1.0.3 compiler automatically on installation
- No manual configuration needed
- Compiler accessible via VS Code terminal
Supported Language Elements
Keywords
- Control Flow: if, else, for, while, return, break, continue, switch, case
- Declarations: const, class, struct, enum, interface, namespace, using
- Modifiers: public, private, protected, static, async, await, new
- Literals: true, false, null, this
Built-in Types
int, uint, long, ulong, byte, sbyte, short, ushort, float, double, decimal, bool, string, char, void, object, dynamic
Operators
- Arithmetic:
+, -, *, /, %
- Comparison:
==, !=, <, >, <=, >=
- Logical:
&&, ||, !
- Bitwise:
&, |, ^, ~, <<, >>
- Assignment:
=, +=, -=, *=, /=, %=, &=, |=, ^=, <<=, >>=
- Increment:
++, --
- Other:
?, :, .., =>
Installation
From VS Code Marketplace
- Open VS Code Extensions (Ctrl+Shift+X)
- Search for "FluxSharp"
- Click Install
- The extension will automatically download the compiler on first use
Manual Installation
git clone https://github.com/Yvan4001/FluxSharp
cd flux-sharp-vscode
npm install
code .
Then press F5 to test the extension in Extension Development Host.
Automatic Compiler Setup
When installed, the extension automatically:
Downloads FluxSharp v1.0.3 Linux x64 binary from:
https://github.com/Yvan4001/FluxSharp/releases/download/v1.0.3/fluxsharp-v1.0.3-linux-x64.tar.gz
Extracts the compiler, runtime, and standard library to:
~/.vscode/extensions/fluxsharp-*/bin/
Verifies installation and caches the version
No manual setup required!
Using the Extension
Create a FluxSharp File
# Create a new file
touch hello.fsh
Syntax Highlighting
Open any .fsh file to see:
- Keywords highlighted in blue
- Types in different colors
- Strings in red
- Numbers in orange
- Comments properly styled
Color Themes
The extension includes two professional color themes inspired by Visual Studio C# highlighting:
FluxSharp Dark (Recommended for Dark Mode)
// settings.json
"workbench.colorTheme": "FluxSharp Dark"
- Keywords: Bright blue
- Types: Teal/cyan
- Strings: Red-orange
- Numbers: Light green
- Comments: Gray-green
- Background: Dark gray (#1e1e1e)
FluxSharp Light (For Light Mode)
// settings.json
"workbench.colorTheme": "FluxSharp Light"
- Keywords: Blue
- Types: Dark teal
- Strings: Dark red
- Numbers: Green
- Comments: Dark green
- Background: White
To switch themes:
- Open Command Palette:
Ctrl+Shift+P
- Type:
Preferences: Color Theme
- Select "FluxSharp Dark" or "FluxSharp Light"
Compile from Terminal
# In VS Code terminal
~/.vscode/extensions/fluxsharp-*/bin/fluxc hello.fsh
Or find the exact path:
find ~/.vscode/extensions -name "fluxc" -type f
Version Support
- FluxSharp: v1.0.3+ (latest)
- VS Code: 1.60.0+
GitHub Repository
FluxSharp GitHub
Latest Release (v1.0.3)
Troubleshooting
| Issue |
Solution |
| Syntax not highlighting |
Ensure file has .fsh extension |
| Compiler not found |
Check ~/.vscode/extensions/fluxsharp-*/bin/fluxc exists |
| Setup failed |
Delete extension and reinstall, or manually download from releases |
| Wrong colors |
Verify your VS Code theme supports standard language scopes |
Resources
Release Notes
0.1.0
- Initial release with comprehensive syntax highlighting
- Automatic FluxSharp v1.0.3 compiler download and setup
- Support for all FluxSharp language constructs
- Smart indentation and bracket matching
- Comment toggling support
License
MIT - See LICENSE file in the repository
Enjoy coding in FluxSharp! 🚀
| |