Recent

Author Topic: Need code formatter  (Read 3867 times)

ssawgift

  • New Member
  • *
  • Posts: 48
    • My Personal Website
Need code formatter
« on: March 07, 2017, 03:08:30 pm »
I'm an occasional user of Lazarus and I like this free IDE. Just curious to ask, are there any code formatting tool available so that I can format my code using my preferred  style. For example, I'd like to add spaces before and after := operator.

jacmoe

  • Full Member
  • ***
  • Posts: 249
    • Jacmoe's Cyber SoapBox
Re: Need code formatter
« Reply #1 on: March 07, 2017, 03:21:17 pm »
Menu -> Source -> JEDI code format.  ;)
more signal - less noise

ssawgift

  • New Member
  • *
  • Posts: 48
    • My Personal Website
Re: Need code formatter
« Reply #2 on: March 07, 2017, 03:48:32 pm »
Menu -> Source -> JEDI code format.  ;)
Ah, why didn't I find it.

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1116
Re: Need code formatter
« Reply #3 on: March 07, 2017, 03:50:16 pm »
For example, I'd like to add spaces before and after := operator.

An extra tip for new files without changing old files.

Menu -> IDE Options -> Codtools -> Space ->

Insert space in front of
  • Symbol


Insert space after
  • Symbol



Graeme

  • Hero Member
  • *****
  • Posts: 1450
    • Graeme on the web
Re: Need code formatter
« Reply #4 on: March 08, 2017, 10:54:09 am »
Menu -> Source -> JEDI code format.  ;)
To add to that... By default no keyboard shortcut is assigned to executing JCF (at least that was so here), but simply go to the global IDE shorcuts (Tools -> Options -> Editor - Key Mappings) and you can assign a shortcut there.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

 

TinyPortal © 2005-2018