Regex replacement in VS Code

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

Daniel Gorski
Daniel Gorski 18. Februar 2021
1 Min. Lesezeit

How-To solve usage of implicit 'with' in VS Code (AL0604)

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 know that VS Code supports usage of search-and-replace with regular expressions?

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


Open your search dialog with CTRL+H

Use this in your Find field:

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

And this in your Replace field:

$1Rec.$2

Then hit the "Use Regular Expression" button (ALT+R):


Your matching lines will be marked:

Replace it – and you’re fine 😎

how-to
development
regex
vs code
al code
search and replace
al0604
Visualisierung von Hauptbuch und Nebenbuch in Business Central

Hauptbuch und Nebenbuch in Business Central: So hängt alles zusammen

Hauptbuch, Nebenbuch, Buchungsgruppen – klingt trocken, ist aber das Fundament jeder sauberen Buchhaltung in Business Central. Wer hier nicht durchblickt, verli

Read More
Read More
Modulare ERP-Architektur für skalierbare Unternehmenssoftware

Warum ERP erst dann wirklich skalierbar wird, wenn es modular gedacht wird

ERP-Systeme gelten als stabiles Rückgrat moderner Unternehmen. Doch die Realität zeigt: hohe Komplexität, starre Strukturen und teure Anpassungen. Die Lösung? M

Read More
Read More