Recent

Author Topic: About xxx completion  (Read 6779 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
About xxx completion
« on: January 14, 2008, 10:40:21 am »
Word completion:
Why is it necessary to press Ctrl+W for word completion? Can't just the list appear as we type?

Brace (( - ), [ - ], { - }, (* - *)) completion:
Many IDE has this feature, I think Lazarus should implement it, too.

Block (Begin - end) completion:
In most C family language IDEs, there's a block ({ - }) completion. For example, in:
Code: [Select]

while(1)| // | indicates caret position

typing '{' would change the code to:
Code: [Select]

while(1){
  |
}

I think Lazarus can implement this, only in Pascal way. For example:
Code: [Select]

while true do begin|

a line break would change the code to:
Code: [Select]

while true do begin
  |
end;

It looks similar with brace completion, only using words instead of symbols.

I think these are easy to implement, but it needs understanding of code tools (i.e. for parsing).

Edson

  • Hero Member
  • *****
  • Posts: 1056
Re: About xxx completion
« Reply #1 on: August 14, 2013, 05:13:08 am »
Totally agree.
Lazarus 1.6 - FPC 3.0.0 - x86_64-win64 on  Windows 7

Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: About xxx completion
« Reply #2 on: August 14, 2013, 04:09:21 pm »
Err... this is a 5-year old post, and some (if not all) of the features are already implemented.