Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97400

How can I compile and run my Pascal code in VS code?

$
0
0

Is there a way I can modify tasks.json and keybingings to create shortcuts for compiling the code and running it? After a ton of googling I came up with this. When I press ctrl+shift+b it compiles but command prompt with the program doesn't pop up.

"version": "0.1.0",
"isShellCommand": true,
"showOutput": "always",
"command": "cmd",
"args": ["/C"],
"tasks": [
    {
        "taskName": "Compile",
        "suppressTaskName": true,
        "isBuildCommand": true,
        "args": ["\"fpc ${file}\""]
    },
    {
        "taskName": "Run",
        "suppressTaskName": true,
        "isBuildCommand": true,
        "args": ["\"start $[fileBasenameNoExtension}.exe\""]
    }
]

}


Viewing all articles
Browse latest Browse all 97400

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>