2

Moving into Visual Studio Code 1.54 from PHPStorm in Laravel project and reading manuals I did not find some features with search functionality:

  • When I search in file and last item is found is it possible to notify about Last item and maybe move to first found element in the file?
  • Has search functionality predefined dirs in scopes(or in some other way) like PHPStorm has

Thanks!

6
  • Do you want the go to next item functionality to wrap beyond the end of the file, for example? And how are you moving to the next item? Commented Mar 22, 2021 at 20:24
  • Say, if last element foud, then show some message in the background Commented Mar 23, 2021 at 4:30
  • There is no built-in functionality to do that. You would have to find or make an extension. Commented Mar 23, 2021 at 16:14
  • Maybe somebody has made such extention ? Also pls pay attention I asked about scopes predefined dirs Commented Mar 23, 2021 at 16:20
  • scopes predefined dirs : can you explain a bit more or give a link where it is described Commented Mar 23, 2021 at 16:35

1 Answer 1

1

Control-Shift-F does a workspace-wide search, and it shows 3 text boxes:

  1. The text to search for
  2. Files to include. This is where you type in directory paths (make sure they start with ./), like ./mydir or ./mydir/subdir/
  3. Files to exclude. Again, you can specify directory paths.

After you start the search you will see a pane fill with all the matches. PHPStorm/IDEA works similarly.

BTW, Control-Shift-H does a workspace-wide search-and-replace, and it works similarly.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.