0

How do I code pascal in VS Code? How do I tell VS Code where to look for the compiler, because I have RAD Studio 10.3 installed. And, how do I compile a multi-file program?

I have managed to attain Omnipascal in VS Code for the syntax highlight, but not much else. Any additional help and information will be appreciated!

Romans
  • 469
  • 1
  • 4
  • 17
  • 4
    99% sure that using VSCode will create more problems than solve. If you already have RAD Studio installed, better to use it as IDE. – Olvin Roght Jun 19 '21 at 19:59
  • 1
    Not a direct answer but since you have RAD Studio 10.3 installed, you don't nee VS Code. RAD Studio has his own IDE which is really very powerful not only to write object pascal code, but also to create the user interface incredibly quickly and manage multiple projects each having multiple files. Look at [Getting started with RAD Studio](http://docwiki.embarcadero.com/RADStudio/Sydney)/en/Getting_Started_with_RAD_Studio – fpiette Jun 20 '21 at 06:25
  • 1
    The compilers in Delphi are called dcc32 (for Win32) and dcc64 (for Win64). There are others for other platforms. They are located in the bin subdirectory of your Delphi installation. I have no idea how to configure VSCode to use them, though. If you insist on doing that you are probably on our own as I know of no other Delphi developer who does this. Delphi itself uses msbuild, so the project's .proj file might give yo a clue. – dummzeuch Jun 20 '21 at 10:24
  • 1
    Before v10.4, local professional developers had gone to VS Code (and demonstrated it) because they were having trouble with CodeInsight etc being very slow for a large project. I understand it is much improved for them in 10.4.x versions with the LSP. – Paul McGee Jun 21 '21 at 07:18

1 Answers1

1

Delphi comes with a very powerful and stable GUI, very low need for using Omnipascal and VS. Find basic tutorial here :

  1. Omnipascal run, compile ...

  2. Delphi Praxis Omnipascal (german only)

pick uo code sample from 2.nd. link

Franz
  • 1,883
  • 26
  • 47