how to search for a word in a current file in vs code code example

Example 1: how to replace text for same words vs code

(1) Select your code

(2) Ctrl+Shift+L (which is editor.action.selectHighlights)

(3) voila, multiple cursors done - type away.

Example 2: vscode search in folder

concatMap(rootTemplate =>
  this.templateEngine.getAllChildTemplates(rootTemplate).pipe(
    map(childTemplates => [rootTemplate, childTemplates])
  )
),
concatMap(([rootTemplate, childTemplates]) => 
  this.templateEngine.createTemplateToRender(childTemplates, rootTemplate)
)

Tags:

Misc Example