Recent

Author Topic: About xxx completion  (Read 8812 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8744
  • 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: 1296
Re: About xxx completion
« Reply #1 on: August 14, 2013, 05:13:08 am »
Totally agree.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Leledumbo

  • Hero Member
  • *****
  • Posts: 8744
  • 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.

 

TinyPortal © 2005-2018