Forum > General

Code Faster Using Lazarus

(1/3) > >>

Handoko:
A fellow member in the forum asked me what are the advantages of using Lazarus/Pascal? So I created 3 short videos showing the features of the Lazarus IDE. Instead of reply to him privately, I think it will better to show them here:

No need to type "end"
In this video I show I rarely need to type "end" because after typing "begin" and press enter, the "end" will be typed for you.
https://imgur.com/a/vLLvl2L

Coding very fast
Using Lazarus' Identifier Completion feature I can code very fast. I don't need to care about the letter case (upper or lower). In the video, it shows:

* I only need to press ctrl+space then type showme and space, ShowMessage will be typed for you.
* I only need to press ctrl+space then type s and dot, Self. will be typed for you.
* I only need to press ctrl+space then type cap and space, Caption will be typed for you.
* And so on for the Width, Height and Invalidate.https://imgur.com/a/nsHbPc5

Renaming object in multiple lines at once
In the third video, I show I can rename object in multiple lines at once.
https://imgur.com/a/Y2NpizN


Actually, there are plenty of 'hidden' features. One can learn more here:
https://wiki.freepascal.org/New_IDE_features_since
https://wiki.freepascal.org/Lazarus_IDE_Tools#Code_Completion

Lazarus/Pascal is great. But I am not a believer of "the xyz tool is the best of them all". I personally believe a great programmer is the one who can use multiple software development tools/languages. If I have more time, I would learn C, C++, Python and Java.

In this post, I only want to show that the Lazarus IDE has many useful features that can help you code much faster. I already showed 3 features I like most. What are the IDE features you like most? Or maybe you want to share some of your tricks that can help us develop programs faster using Lazarus/Pascal.

ccrause:
Thank you for the clips Handoko, it very nicely illustrate the functionality. I also use ctrl+space for code completion a lot.

I don't really code that fast, so the IDE tools I benefit more from is the code exploration tools:

* ctrl+click on identifier to jump to declaration
* ctrl+shift+up/down to jump between interface declaration and implementation sections
* ctrl+shift+space after open bracket of method to view list of parameters

Handoko:

--- Quote from: ccrause on August 25, 2022, 06:59:50 pm ---...the IDE tools I benefit more from is the code exploration tools:

* ctrl+click on identifier to jump to declaration
* ctrl+shift+up/down to jump between interface declaration and implementation sections
* ctrl+shift+space after open bracket of method to view list of parameters
--- End quote ---

I use ctrl+click and ctrl+shift+up/down too.

For showing the list of parameters I usually delete and retype the bracket so the IDE will (re)show the list. I never knew ctrl+shift+space. It is very useful. Thank you for sharing the trick.

Lulu:
Thanks you very much to share ! I usually use only ctrl+shift+c/up/down

Martin_fr:

--- Quote from: Handoko on August 25, 2022, 04:47:29 pm ---Actually, there are plenty of 'hidden' features. One can learn more here:
https://wiki.freepascal.org/New_IDE_features_since
https://wiki.freepascal.org/Lazarus_IDE_Tools#Code_Completion

--- End quote ---

I just want to underline the 2nd link.

https://wiki.freepascal.org/Lazarus_IDE_Tools

IMHO, Everyone should read that page. Really should.

In most cases, even someone with 10 or more years on Lazarus will find something useful that they did not yet know.

Navigation

[0] Message Index

[#] Next page

Go to full version