Code Monkey home page Code Monkey logo

vscode-pascal's Introduction

Pascal Setup for VSCode

This repository includes a configuration to set up a Pascal development environment using DevContainers in Visual Studio Code (VSCode). This allows you to develop in a consistent environment without the hassle of manually setting up dependencies on your local machine.

Prerequisites

  1. Visual Studio Code: Make sure you have the latest version of VSCode installed. You can download it from here.
  2. Docker: Ensure Docker is installed and running on your machine. You can find installation guide here.
  3. Dev Containers Extension: Install the "Dev Containers" extension in VSCode. You can find it here.

Setting Up the DevContainer

  1. Clone the Repository:

    git clone https://github.com/Whitomtit/VSCode-Pascal.git
    cd VSCode-Pascal
  2. Open the Repository in VSCode: Open VSCode and select File > Open Folder..., then choose the cloned repository folder.

  3. Reopen in Container:

    • Once the repository is open in VSCode, you should see a prompt at the bottom right corner asking if you want to reopen the folder in a container. Click on Reopen in Container.
    • If you don't see the prompt, you can manually reopen in container by pressing F1, then typing and selecting Dev Containers: Reopen in Container.

Compiling and Running Files with Free Pascal

This repository is configured to use the Free Pascal Compiler (FPC). Follow these steps to compile and run your Pascal files:

  1. Open a Terminal: Open a terminal in the container by pressing Ctrl+` (backtick) or selecting Terminal > New Terminal.

  2. Compile the Pascal File:

    fpc yourfile.pas

    Replace yourfile.pas with the name of your Pascal source file. This command will generate an executable file in the same directory.

  3. Run the Executable:

    ./yourfile

    Replace yourfile with the name of the generated executable (typically, the same as your Pascal file name without the .pas extension).

Common Commands

  • Start the Container: Automatically handled when you open the folder in the container.
  • Access the Terminal: You can open a terminal inside the container by pressing Ctrl+` (backtick) or selecting Terminal > New Terminal.

Troubleshooting

  • Container Fails to Start: Ensure Docker is running and you have the latest version of VSCode and the Dev Containers extension.

Additional Resources

vscode-pascal's People

Contributors

whitomtit avatar

Watchers

 avatar

Forkers

carolelasmar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.