Vscode: Add Case sensitivity to editor.action.addSelectionToNextFindMatch

Created on 29 Feb 2016  路  2Comments  路  Source: microsoft/vscode

We use this feature a lot in our daily development activities however since it is case-insensitive, it tends to select items that are unintended. A perfect example is defining an instance of a class and wishing to rename the instance references but not the class itself:

var user = new User(); <-- cmd+d would select 'user' & 'User' when only the instance variable is intended
user.firstName = 'Joe';
user.lastName = 'Smith';

Most helpful comment

While this does seem to work it is a bit clunky and not well known as an option. I would assume cmd+d would function case-sensitive as most other text editors do with maybe cmd+alt+d as a case-insensitive selection.

All 2 comments

@jayrosen1576 The find widget toggles also control the behaviour of cmd+d. The toggles can be used even when the find widget is hidden:

Here are the mac keybindings:

  • case sensitive: cmd+alt+c
  • whole words: cmd+alt+w

ctrl-d-case-sensitive

While this does seem to work it is a bit clunky and not well known as an option. I would assume cmd+d would function case-sensitive as most other text editors do with maybe cmd+alt+d as a case-insensitive selection.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

omidgolparvar picture omidgolparvar  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments

biij5698 picture biij5698  路  3Comments

NikosEfthias picture NikosEfthias  路  3Comments

curtw picture curtw  路  3Comments