Install lazarus IDE

Summary of what you are going to install:

  1. Lazarus IDE
  2. anchordocking design package for a dockable GUI

1) Install Lazarus IDE

At first try to download it from the standard APT repositories:

sudo apt update
sudo apt install lazarus-ide

If that does not work, try the following:

gpg --keyserver hkp:// --recv-keys 6A11800F; gpg -a --export 6A11800F | sudo apt-key add -
echo "deb lazarus-stable universe" | sudo tee /etc/apt/sources.list.d/lazarus-stable.list
sudo apt-get update; sudo apt-get install lazarus

For more read How to Install Lazarus on Ubuntu article.

2) Install the dockable plugin

Perform the following steps:

  1. Packages → Install/Uninstall packages
  2. select anchordockingdsgn package from the “Available for installation” packages list
  3. click Install selection
  4. click Save and rebuild IDE
  5. wait for the IDE to compile

3) Setup code formatting

This step is optional and you may change some options according to your taste:

  1.  Tools → Options → Editor → Tab and indent
    1. Disable Smart tabs
    2. Enable Tabs to spaces
    3. Set Tab widths to 4
  2. Tools → Options →JCF code formatting → Clarify → Indentation
    1. Set Block indentation spaces to 4
  3. Tools → Options →JCF code formatting → Clarify → Capitalization
    1. Disable Capitalization fixing in this category
    2. Disable Capitalization fixing in all subcategories
  4. Tools → Options →JCF code formatting → Clarify → Line Breaking
    1. Set max line length to 90
    2. Set break lines to never

Leave a Reply