Recent

Author Topic: [SOLVED] How to disable adding a space in autocomplete?  (Read 527 times)

CM630

  • Hero Member
  • *****
  • Posts: 1652
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
[SOLVED] How to disable adding a space in autocomplete?
« on: February 09, 2026, 08:53:31 am »
When I use autocomplete (ctrl + space) there is always a space after the autocompleted word.
I want to get rid of these spaces.
There seems to be some related setting in Ide Option – Code tools – Identifier completion, but I see nothing about the space there.
I cleared all checkboxes in Ide Option – Code tools – Space, but it did not help.
« Last Edit: February 09, 2026, 11:31:15 am by CM630 »
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12202
  • Debugger - SynEdit - and more
    • wiki
Re: How to disable adding a space in autocomplete?
« Reply #1 on: February 09, 2026, 09:43:20 am »
I just tried in a fresh install (4.4), and did not get spaces (without any config changes). So it should be possible. But I can't think of which setting may cause this...

I did try, new app. Just did a "FormCreate" method, and completed
1) "Cascade;|" from Cas=> which should really have no space as it will have the semicolon
2) "Caption:=|;  " from Cap => which also had no space, not even after the :=


You could try to remove your config files, and see if going to the default will fix it.

CM630

  • Hero Member
  • *****
  • Posts: 1652
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: How to disable adding a space in autocomplete?
« Reply #2 on: February 09, 2026, 10:26:41 am »
I have reinstalled Lazarus today, and I have used  Uninstall and Remove previous settings during the installation.
Still, I have the spaces. It is not something new, actually.
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

Zvoni

  • Hero Member
  • *****
  • Posts: 3307
Re: How to disable adding a space in autocomplete?
« Reply #3 on: February 09, 2026, 10:43:19 am »
Works for me
Lazarus 4.3 (old fixes)
« Last Edit: February 09, 2026, 10:44:55 am by Zvoni »
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

CM630

  • Hero Member
  • *****
  • Posts: 1652
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
[SOLVED]Re: How to disable adding a space in autocomplete?
« Reply #4 on: February 09, 2026, 11:26:45 am »
I figured it out.
Why I type some text and I press ctrl+space I get the items in the list.
If I press Space to autocomplete the word, there is a space after it.
But if I press Enter there is no space.
Pressing Tab works if there is only one possible word.
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

Zvoni

  • Hero Member
  • *****
  • Posts: 3307
Re: [SOLVED]Re: How to disable adding a space in autocomplete?
« Reply #5 on: February 09, 2026, 11:50:40 am »
If I press Space to autocomplete the word, there is a space after it.
Makes sense in a way.
The pressed "space" has to go somewhere....
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

 

TinyPortal © 2005-2018