multi variable code completion
Original Reporter info from Mantis: BeniBela @benibela
-
Reporter name: Benito van der Zander
Original Reporter info from Mantis: BeniBela @benibela
- Reporter name: Benito van der Zander
Description:
Currently, if you have a:=0, Lazarus can automatically create an a:integer variable.
But if you have a:=0; b:=0; c:=0;, select the whole line and press ctrl+shift+c, it doesn't create any variable (or only one if your lucky). It should create variable declarations a,b,c: integer;, or at least a:integer;\nb:integer;\nc:integer.
A similar/easier case is:
a := 0;
b := 0;
c := 0;
With block select, you can select all variables, and only those, but ctrl+shift+c only creates a variable declaration for the last one.
(this gets especially useful, if you have inserted a c-like source into the pascal file, and have to create a new variable declaration for every var. declared there)
Mantis conversion info:
- Mantis ID: 17327
- Build: 27195
- Version: 0.9.28.3 (SVN)
- Monitored by: » @MageSlayer (Denis Golovan)