Find & Replace

Find & replace can be found in the Tools pane. There are also four ways to open it and set default options:

  • Press Ctrl+Shift+f to open it with the Search in option set to Open files.

  • Press Ctrl+Shift+h to open it with the Search in option set to Open files and the Replace option checked.

  • Press Ctrl+h on an editor to open is with the Search in option set to Current document and the Replace option checked.

  • Right click on a file or directory in the file tree and select Find or Replace to open it with the Search in option set to that file/directory and the Replace option checked accordingly.

Regular expressions

Find & replace uses the same placeholder and expression syntax as snippets to insert regex references into the replacement.

References are available as @n placeholders in the main replacement and as $n variables in expressions. For example, @0 or @{$0} is the whole match, @1 or @{$1} is the first capture group, and so on.

Example

To convert function names to camel-case:

  • Find: function ([\w_]+)

  • Replace with: function @{camel($1)}