PicoC Language SupportOfficial Visual Studio Code extension for the PicoC programming language. Provides a full-featured editing experience with syntax highlighting, IntelliSense, compiler integration, and more. FeaturesSyntax HighlightingRich, accurate token coloring for all PicoC language constructs — keywords, types, strings, numbers, operators, functions, and variables. IntelliSense & Auto-Completion
Go to DefinitionCtrl+Click or F12 to jump to:
Hover InformationHover over any function or variable to see:
Code SnippetsType a prefix and press Tab to expand:
Documentation Comments (
|
| Tag | Purpose |
|---|---|
@brief |
Short description of the function |
@param name desc |
Document a parameter |
@return / @returns |
Describe the return value |
@note |
Additional notes |
@warning |
Usage warnings |
@deprecated |
Mark as deprecated |
@throws |
Error conditions |
@see |
Cross-references |
@example |
Usage examples |
@author |
Author information |
@version / @since |
Version information |
Type @ inside a comment to get auto-complete suggestions for all tags.
Example:
/*
* @brief Display all prime numbers in a range
* @param low The lower bound (inclusive)
* @param high The upper bound (exclusive)
* @return void
*/
displayAllPrimeNumbersInRange(low: int, high: int) -> void
{
...
}
Enhanced Comment Tags
Special markers inside comments are highlighted with distinct colors:
| Marker | Style | Purpose |
|---|---|---|
! text |
Red, bold | Alerts and critical notes |
? text |
Blue, italic | Questions and uncertainties |
* text |
Green, bold | Highlighted / important info |
TODO: |
Orange background | Tasks to complete |
FIXME: |
Pink background | Bugs to fix |
TODO and FIXME also appear as colored markers in the scrollbar (orange and pink respectively) so you can spot them at a glance.
Compiler Integration
- Compile on save — automatically compiles the current file when saved (configurable)
- Compile command — run
PicoC: Compile Current Filefrom the command palette - Inline diagnostics — compiler errors and warnings appear as squiggly underlines with messages
- Proposed fixes — when the compiler suggests a fix, it's shown alongside the error
Language Configuration
- Line comments (
#) and block comments (/* */) - Bracket matching and auto-closing for
{},(), and"" - Surrounding pairs support
Settings
| Setting | Default | Description |
|---|---|---|
picoc.compilerPath |
"picoc" |
Path to the PicoC compiler executable |
picoc.compileOnSave |
true |
Automatically compile when a .picoc file is saved |
Example
displayAllPrimeNumbersInRange(low: int, high: int) -> void;
main(void) -> int
{
let low: int = 1;
let high: int = 100;
displayAllPrimeNumbersInRange(low, high);
return 0;
}
/*
* @brief Display all prime numbers in range
* @param low Start of range (inclusive)
* @param high End of range (exclusive)
*/
displayAllPrimeNumbersInRange(low: int, high: int) -> void
{
while(low < high)
{
let is_prime: bool = true;
# 0 and 1 are not prime numbers
if(low < 2)
{
is_prime = false;
}
for(let i: int = 2; i < ((low // 2) + 1); i = i + 1)
{
if(low % i == 0)
{
is_prime = false;
break;
}
}
if(is_prime)
{
println(low);
}
low = low + 1;
}
}
Multi-File Support
PicoC supports multi-file projects with import / export:
math.picoc:
export const pi: double = 3.14;
Add(let a: int, let b: int) -> int
{
return a + b;
}
main.picoc:
import { pi, Add } from "math.picoc"
# or: import * from "math.picoc"
main(void) -> int
{
println(Add(67, 69));
println(pi);
return 0;
}
The extension provides full IntelliSense, hover docs, and Go to Definition across imported files.
Contact & Links
- Email: picocdevelopers@gmail.com
- Repository: GitLab — Custom-Programming-Language
- Issues: Report a bug or request a feature