For Each statement intellisense completion

SyntaxEditor .NET Languages Add-on for Windows Forms Forum

The latest build of this product (v24.1.1) was released 2 months ago, which was before this thread was created.
Posted 2 months ago by Gavin Huet
Version: 24.1.1
Platform: .NET 4.8
Environment: Windows 11 (64-bit)
Avatar

Hi,

When you have declared a variable and want to use it in a For Each statement, the intellisense / autocomplete does not fire when you press Ctrl+Space as you type the For Each statement.

Dim AccountAccountingLedger As DataRow
Dim dataTable As DataTable

' This is what I want - as I type For Each Accou and then press Ctrl+Space it should pick up the variable name
For Each AccountAccountingLedger In dataTable.Rows
Next

' The issue
For Each Account ' Now press Ctrl+Space - there is no intellisense / autocomplete

Next

I notice this is the same behaviour as VS2022 but thought it may be something that can be fixed somehow?

Many thanks

Gavin

[Modified 2 months ago]

Comments (2)

Answer - Posted 2 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Gavin,

We will update the completion for the next maintenance release to include previously-declared variables after For Each.


Actipro Software Support

Posted 2 months ago by Gavin Huet
Avatar

Thanks, much appreciated.

Add Comment

Please log in to a validated account to post comments.