Skip to content
Tomas Restrepo edited this page Apr 5, 2016 · 1 revision

Viasfora provides an easy way to hide text in the editor during presentations, based on regular expressions. You can configure obfuscation expressions from the Tools -> Options -> Viasfora -> Text Hiding option in Visual Studio:

Text Obfuscation Options

The Options column can be used in the following manner:

  • HideMatch: The entire substring matched by the regular expression will be obfuscated
  • HideGroups: Only groups with index >= 1 will be obfuscated. This allows you to use capture groups in the regular expressions together with non-capturing groups (?:) to control more precisely what gets obfuscated.

For example, if you use the following regular expression:

(?:apiKey\s*=\s*")(.*)(?:")

With HideGroups, it will look for a variable called apiKey set to a string literal, but will only obfuscate the contents of the string literal (it's not a perfect example, just useful for presenting it).

By default, text obfuscation is always disabled. To enable it, use the View -> Obfuscate Text command or the Ctrl+E, Ctrl+O key combination:

Text Obfuscation Sample

You can disable text obfuscation again using the same command. If you close or start a new VS instance, it will be again disabled by default.

Clone this wiki locally