[Lazarus] Jedi Code Formatter (JCF) issues

Tom Lisjac zikon770 at gmail.com
Mon May 20 10:09:33 CEST 2019


Waking up an old thread as I'm also having trouble getting some basic
formatting options to work with JCF in 2.0.2. I want the code to look like
the following, which the fpc tools ptop formatter does by default:

if something then
  begin
     statement;
     statement
  end

But no matter what combination of settings I try, JCF insists on doing
either this:

if something then
  begin
  statement;
  statement
  end

or this:

if something then
begin
  statement;
  statement
end

I'd like to get this working out of the ide rather then having to break out
to run ptop from the command line. Any suggestions would be greatly
appreciated.

Thanks,

-Tom


On Tue, Feb 28, 2017 at 11:45 AM Graeme Geldenhuys via Lazarus <
lazarus at lists.lazarus-ide.org> wrote:

> Hi,
>
> Is there an actual JCF (included with Lazarus) maintainer? I've recently
> been using it quite a bit and noticed a couple of problems. I'll
> obviously try and fix them myself (free time is very limited, but I'll
> try my best).
>
> The two most important ones for me:
>
> * Some code formatting is not applied (ignored) based on configuration
>   settings.
> * Some configuration changes are not persisted, so user defined options
>   can't actually be applied in the code formatting.
>
> Regards,
>   Graeme
>
> --
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://fpgui.sourceforge.net/
>
> My public PGP key:  http://tinyurl.com/graeme-pgp
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus-ide.org
> http://lists.lazarus-ide.org/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20190520/a85f538f/attachment-0003.html>


More information about the lazarus mailing list