Summary of what you are going to install:
- Lazarus IDE
- 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://pgp.mit.edu:11371 --recv-keys 6A11800F; gpg -a --export 6A11800F | sudo apt-key add - echo "deb http://www.hu.freepascal.org/lazarus/ 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:
- Packages → Install/Uninstall packages
- select anchordockingdsgn package from the “Available for installation” packages list
- click Install selection
- click Save and rebuild IDE
- wait for the IDE to compile
3) Setup code formatting
This step is optional and you may change some options according to your taste:
- Tools → Options → Editor → Tab and indent
- Disable Smart tabs
- Enable Tabs to spaces
- Set Tab widths to 4
- Tools → Options →JCF code formatting → Clarify → Indentation
- Set Block indentation spaces to 4
- Tools → Options →JCF code formatting → Clarify → Capitalization
- Disable Capitalization fixing in this category
- Disable Capitalization fixing in all subcategories
- Tools → Options →JCF code formatting → Clarify → Line Breaking
- Set max line length to 90
- Set break lines to never