Changing case in regex replace

VS Code now supports changing the case of regex matching groups while doing a find/replace in the editor. This is done with the modifiers \u\U\l\L, where \u and \l will upper/lowercase a single character, and \U and \L will upper/lowercase the rest of the matching group.

Image for post

Example. Credit: VsCode

The modifiers can also be stacked — for example, \u\u\u$1 will uppercase the first three characters of the group, or \l\U$1 will lowercase the first character, and uppercase the rest.

Currently, these are only supported in the editor’s Find control, and not in global Find in Files.


Hex Editor

The HexEditor extension sees improvements every release of vs code. The latest version now support for copy and paste, file watching, and find and replace.

Copy and Paste

Ability to copy values to the clipboard and paste them either inside the editor, or in different place.

Image for post

Copy and Paste Support. Credit: VsCode

Find and Replace

We can no search in the hex editor now and comes with a similar find and replace widget. It supports searching hexadecimal fields using wildcards (for example, FF ?? DD) and regex searching on the decoded text section.

#software-development #visual-studio-code #vscode-extension #programming #vscode #visual studio code

New Features to Try Out on Vs Code
3.40 GEEK