Home:ALL Converter>Pascal extension on VSCODE (pascal auto indent)

Pascal extension on VSCODE (pascal auto indent)

Ask Time:2020-06-12T04:16:43         Author:Santiago Montiel

Json Formatter

I'm trying to use pascal on vscode and i had to download some extensions, one of them ('Pascal formatter) what me to config this variables: Indicates the engine app path (required) "pascal.formatter.enginePath":

Indicates the configuration file for the selected engine (optional) "pascal.formatter.engineParameters": But im on ubuntu and i dont know where is that, bc the enginepath default its "C:\FPC\2.6.4\bin\i386-win32\ptop.exe". what i need to do here? I want to use this extension because vscode its not auto-indenting my code while i write it.

If i write this in vscode :

program example;
var
i:integer;
begin
i:=4;
i:=4+5;
end.

but i want the code to autoindent while im writing like this:

program example;
var(*after hit enter it  autoindent*)
   i:integer;
begin(*after hit enter autoindent*)
   i:=4;
   i:=4+5;
end.(*detect end and get it to the same indent than begin*)

Author:Santiago Montiel,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/62332829/pascal-extension-on-vscode-pascal-auto-indent
yy