YKBcore - Complete Language Support Extension
VS Code extension for YKBcore programming language with complete IDE support!
📦 Extension Details
- Name: YKBcore - Complete Language Support
- ID:
ykbcore
- Version: 2.0.0
- Publisher: ykbcore
🚀 Features
✨ Core Features
- ✅ Syntax Highlighting - Full syntax highlighting for all YKBcore keywords
- ✅ IntelliSense/Autocomplete - Smart code completion for keywords, functions, and operators
- ✅ Code Snippets - 25+ ready-to-use code snippets
- ✅ Hover Documentation - Hover over keywords to see documentation
- ✅ Indian Flag Theme - Beautiful color theme with Indian flag colors 🇮🇳
- ✅ File Icons - Custom icons for all YKBcore file types
- ✅ Auto-closing Brackets - Automatic bracket and delimiter completion
🎨 Theme Features
YKBcore Indian Flag Theme with 3 patriotic colors:
- Saffron (#FF9933) - Keywords, YKB markers
- White (#FFFFFF) - Background
- Green (#138808) - Strings, Numbers
📝 Supported File Extensions
.ykb - Main YKBcore source files
.ykbl - YKB Layout files
.ykbs - YKB Style files
.ykbh - YKB Hardware files
.ykbaim - YKB AI Model files
.ykbr - YKB Robotics files
⌨️ Keyboard Shortcuts
Ctrl+Shift+F - Format YKBcore document
Ctrl+F5 - Run YKBcore code
🎯 Code Snippets Available
Type these prefixes and press Tab:
nucleus - Main entry point
pulse - Function definition
ignite - Function call
birth - Variable declaration
cast - Print statement
if - If statement
ifelse - If-else statement
spin - Loop
flare - Return statement
roboPulse - Robotics control loop
motor - Motor control
sense - Sensor reading
cortex - AI inference
train - AI training
gpio - Hardware GPIO control
hello - Hello World program
iom - IOM mode markers
🔧 Configuration Options
Open VS Code settings and search for "YKBcore":
- Enable IntelliSense - Toggle autocomplete (default: true)
- Enable Hover - Toggle hover documentation (default: true)
- Enable Snippets - Toggle code snippets (default: true)
- Auto Format - Auto-format on save (default: true)
- Show Triple-YKB Warnings - Show validation warnings (default: true)
📚 IntelliSense Support
Autocomplete available for:
- Core keywords (birthYKB, pulseYKB, igniteYKB, etc.)
- Robotics keywords (roboPulseYKB, motorSpinYKB, etc.)
- AI keywords (cortexYKB, trainPulseYKB, etc.)
- Operators (++>, <--, ✱✱, //>, =YKB=, etc.)
- Functions and methods
💡 Hover Documentation
Hover over any keyword to see:
- Purpose and description
- Syntax examples
- Usage documentation
📦 Installation
Method 1: Install from VSIX (Recommended)
- Download the
.vsix file
- Open VS Code
- Press
F1 or Ctrl+Shift+P
- Type:
Extensions: Install from VSIX...
- Select the
.vsix file
- Reload VS Code
Method 2: Install from Folder
- Open VS Code
- Press
F1 or Ctrl+Shift+P
- Type:
Developer: Install Extension from Folder...
- Select the
vscode-extension folder
- Reload VS Code
Method 3: Manual Installation
- Copy the
vscode-extension folder to:
- Windows:
%USERPROFILE%\.vscode\extensions\ykbcore\
- macOS:
~/.vscode/extensions/ykbcore/
- Linux:
~/.vscode/extensions/ykbcore/
- Restart VS Code
🎨 Using the Indian Flag Theme
- After installing extension, restart VS Code
- Press
F1 or Ctrl+Shift+P
- Type:
Preferences: Color Theme
- Select: "YKBcore Indian Flag"
- Enjoy colorful syntax highlighting! 🇮🇳
📖 Usage Examples
Example 1: Hello World
Open a new file with .ykb extension and type:
YKB nucleusYKB <<YKB| |YKB>> YKB
YKB castYKB >> <<YKB Hello, YKBcore! YKB>> YKB
YKB endYKB YKB
Example 2: Using Snippets
- Type
hello and press Tab
- Full Hello World code will appear!
Example 3: Autocomplete
- Type
YKB bir and press Ctrl+Space
- Select
birthYKB from suggestions
- See documentation in hover tooltip
📁 File Structure
vscode-extension/
├── package.json # Extension manifest
├── extension.ts # Extension activation code
├── tsconfig.json # TypeScript configuration
├── syntaxes/
│ └── ykb.tmLanguage.json # TextMate grammar
├── snippets/
│ └── ykb.code-snippets # Code snippets
├── themes/
│ └── indian-flag-theme.json # Color theme
├── icons/
│ ├── ykb-icon.svg # Icon file
│ └── ykb-icon-theme.json # Icon theme
├── language-configuration.json # Language settings
└── README.md # This file
🛠️ Development
Prerequisites
- Node.js (v14 or higher)
- VS Code Extension Development Host
- TypeScript
Build Extension
cd vscode-extension
npm install
npm run compile
Test Extension
- Open this folder in VS Code
- Press
F5 to launch Extension Development Host
- Test features in the new VS Code window
📝 Commands
Available commands (press F1 to access):
YKBcore: Format Document - Format YKBcore code
YKBcore: Validate Triple-YKB Rule - Validate code
YKBcore: Insert YKB Marker - Insert YKB marker
YKBcore: Run Code - Run YKBcore code
YKBcore: Show Documentation - Open documentation
🐛 Troubleshooting
Extension not activating?
- Check VS Code version (requires 1.74.0 or higher)
- Check if file has
.ykb extension
- Reload VS Code window
- Check Output panel for errors (View → Output → YKBcore)
IntelliSense not working?
- Open Settings (
Ctrl+,)
- Search for "YKBcore"
- Ensure "Enable IntelliSense" is checked
Theme not showing?
- Press
F1
- Type:
Preferences: Color Theme
- Search for "YKBcore Indian Flag"
- Select it
📄 License
This extension is part of the YKBcore programming language project.
🤝 Contributing
Contributions welcome! Please see the main YKBcore repository for contribution guidelines.
🔗 Links
Made with ❤️ in India 🇮🇳