top of page

How-To USE Search-and-Replace Regex in VS Code

Aktualisiert: 4. Jan. 2022

or even: How-To solve usage of implicit 'with' in VS Code AL0604 for fields in pages.


AL(AL0604): Use of implicit 'with' will be removed in the future. Qualify with 'Rec.'. This warning will become an error in a future release.


Hey guys,


you might now that VS Code supports usage of search-and-replace regular expressions?


If you want to know how this reg-ex works, just visit: https://regex101.com/r/Rx7sPI/4



Open your search dialog CTRL+H



Simply use this in your 'Find'-Statement:

(\w*field\(.*; ?)(.*\))

and this in your 'Replace'-Statement:

$1Rec.$2

and hit the "Use Regular-Expression" Button (ALT+R)

Your matching lines will be marked:


Replace it and you are fine:





409 Ansichten0 Kommentare

Aktuelle Beiträge

Alle ansehen

BeyondCues

Make your employees' everyday life easier and increase productivity at the same time. BEYOND Cues adds a tab to your role center with “Cues”. Among other things, the cues can be configured to display

bottom of page