Claus Pedersen
Member³
I have the following code:
I want to make a macro to allign all ":=" like in the first line (at position 15).
I search for ":=" and have assigned Ctrl-L to Edit -> Find Next (I think this is standard?)
If the cursor is at the beginning of line 2 (assignment to x), I can use Ctrl-L to find the assignments in line 2, 3, and 4
I place the cursor at the beginning of line 2 (assignment to x) and press F11 to begin macro recording.
In macro recording, I press the following keys:
1) Ctrl-L (to find the assignment)
2) Left arrow
3) Right arrow (to remove the marking)
4) Tab (to align with the line above)
5) Down arrow (to go to next line)
6) Home (to go to the start of the new line)
I press F11 again to end the macro recording.
When I Press F12 (this time at line 3, assignment to y) to execute the macro, PLD finds the assignment in line 2 (x) and performs the Tab at line 3. If I navigate manually to a new line and press F12, it works as expected.
If I look into the macro library, the keyboard commands seems to be recorded as expected.
It seems like PLD has the wrong internal state for the starting point of Find Next.
I am using version 11.0.3.1770 and my editor settings are:
Smart tab=Y, Tab size=2, Smart fill=N, Use tab character=N
Please, could this be fixed?
Code:
myVariable := 1;
x := 2;
y := 3;
z := 4;
I want to make a macro to allign all ":=" like in the first line (at position 15).
I search for ":=" and have assigned Ctrl-L to Edit -> Find Next (I think this is standard?)
If the cursor is at the beginning of line 2 (assignment to x), I can use Ctrl-L to find the assignments in line 2, 3, and 4
I place the cursor at the beginning of line 2 (assignment to x) and press F11 to begin macro recording.
In macro recording, I press the following keys:
1) Ctrl-L (to find the assignment)
2) Left arrow
3) Right arrow (to remove the marking)
4) Tab (to align with the line above)
5) Down arrow (to go to next line)
6) Home (to go to the start of the new line)
I press F11 again to end the macro recording.
When I Press F12 (this time at line 3, assignment to y) to execute the macro, PLD finds the assignment in line 2 (x) and performs the Tab at line 3. If I navigate manually to a new line and press F12, it works as expected.
If I look into the macro library, the keyboard commands seems to be recorded as expected.
It seems like PLD has the wrong internal state for the starting point of Find Next.
I am using version 11.0.3.1770 and my editor settings are:
Smart tab=Y, Tab size=2, Smart fill=N, Use tab character=N
Please, could this be fixed?