Pascal Auto Run
Compile and run your Pascal programs with one click directly in VS Code.
English | Français
English
Quick Start
- Install Free Pascal Compiler
- Open a
.pas file in VS Code
- Click the beaker icon (🧪) in the top-right corner
That's it!
Features
- One-click compile and run
- Auto-detects
fpc compiler
- Works on Windows, macOS, and Linux
- Supports
.pas, .pp, .inc, .lpr files
Setup
If the compiler isn't found automatically:
- Press
Ctrl+Shift+P (or Cmd+Shift+P on Mac)
- Type "Pascal: Select Compiler Path"
- Select your
fpc.exe file
Settings
Open VS Code settings and search for "Pascal Auto Run":
- Compiler Path - Leave empty for auto-detection
- Compiler Options - Add flags like
-O3 if needed
- Save Before Compile - Default: enabled
- Pause After Execution - Default: enabled
- Cleanup After Compile - Delete
.o and .ppu files (default: disabled)
Example
program Hello;
begin
WriteLn('Hello, Pascal!');
ReadLn;
end.
Support
Found a bug? Open an issue
Français
Démarrage rapide
- Installez Free Pascal Compiler
- Ouvrez un fichier
.pas dans VS Code
- Cliquez sur l'icône bécher (🧪) en haut à droite
C'est tout !
Fonctionnalités
- Compilation et exécution en un clic
- Détecte automatiquement le compilateur
fpc
- Fonctionne sur Windows, macOS et Linux
- Supporte les fichiers
.pas, .pp, .inc, .lpr
Configuration
Si le compilateur n'est pas trouvé automatiquement :
- Appuyez sur
Ctrl+Shift+P (ou Cmd+Shift+P sur Mac)
- Tapez "Pascal: Select Compiler Path"
- Sélectionnez votre fichier
fpc.exe
Paramètres
Ouvrez les paramètres VS Code et recherchez "Pascal Auto Run" :
- Chemin du compilateur - Laisser vide pour détection automatique
- Options du compilateur - Ajoutez des options comme
-O3 si nécessaire
- Sauvegarder avant compilation - Par défaut : activé
- Pause après exécution - Par défaut : activé
- Nettoyage après compilation - Supprime les fichiers
.o et .ppu (par défaut : désactivé)
Exemple
program Bonjour;
begin
WriteLn('Bonjour, Pascal !');
ReadLn;
end.
Support
Un bug ? Ouvrez une issue
Author
AGBENONWOSSI Kokou Kplolali (Vianology)
GitHub: @Vianology
License
MIT License
| |