Vscode: feature issue: saving Find/Replace options

Created on 6 May 2016  路  3Comments  路  Source: microsoft/vscode

VSCode should save the Find / Replace options like: Match case and Whole word.
This would allow to using them after restart.
It could be an user option below search settings.

editor-find feature-request

Most helpful comment

We'll start with the persistence with three search options Match Case, Match Word and Regex first. The goal is aligning with current Search Viewlet.

As we discussed in https://github.com/Microsoft/vscode/issues/11574#issuecomment-245623366 , we are going to persist user preference in following way

  • anytime a find widget toggle is changed, I will persist it (last one wins)
  • when the workbench starts up, I will read the persisted values and start with those by default.

In addition to that, we'll keep the setting persistent per workspace. Let's start with it first and then see if it's necessary to have a global setting that defines the default value for find options for new workspaces.

All 3 comments

also does the multiple selections need to use the find settings or can it have it's own, set in settings.json or somewhere?

We'll start with the persistence with three search options Match Case, Match Word and Regex first. The goal is aligning with current Search Viewlet.

As we discussed in https://github.com/Microsoft/vscode/issues/11574#issuecomment-245623366 , we are going to persist user preference in following way

  • anytime a find widget toggle is changed, I will persist it (last one wins)
  • when the workbench starts up, I will read the persisted values and start with those by default.

In addition to that, we'll keep the setting persistent per workspace. Let's start with it first and then see if it's necessary to have a global setting that defines the default value for find options for new workspaces.

Is it intended that vscode only remembers the search settings for directory where these have been set?

If I start vscode e.g. with: code example-dir
and I check case sensitive search I will remember these settings, after I closed and reopened the editor.

But if start vscode in an other directory the settings are gone. Is this how it should work?

As far as I know there is no global setting to define the default one or am I missing something?

Was this page helpful?
0 / 5 - 0 ratings