Zum Inhalt springen
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
GoBD-konforme Archivierung mit Business Central und SharePoint ohne DMS

Architektur

Revisionssicher archivieren ohne DMS? Wie weit Business Central, SharePoint und Azure Blob Storage wirklich tragen

Warum „GoBD" oft vorschnell zum K.O.-Kriterium wird – und wie weit Business Central, SharePoint und Azure Blob Storage wirklich tragen.

Weiter lesen: Revisionssicher archivieren ohne DMS? Wie weit Business Central, SharePoint und Azure Blob Storage wirklich tragen
Weiter lesen: Revisionssicher archivieren ohne DMS? Wie weit Business Central, SharePoint und Azure Blob Storage wirklich tragen
Modulare ERP-Architektur für skalierbare Unternehmenssoftware

Architektur

Mehr als nur Warenwirtschaft - die Landtechnik Lösung

ERP-Systeme wurden jahrelang als Monolithen verkauft. Die eigentliche Stärke moderner Plattformen wie Business Central liegt jedoch in der Modularität - und gen

Weiter lesen: Mehr als nur Warenwirtschaft - die Landtechnik Lösung
Weiter lesen: Mehr als nur Warenwirtschaft - die Landtechnik Lösung