Navigation after using ReSharper "Delete unavailable field" fix

When using the “Delete unavailable field” quick delete option in the ReSharper context menu, it selects the affected row.

Is there a keyboard shortcut that will lead me to this highlighted line? (How often this line is also redundant and can be deleted)

eg. Given this code:

public class Sample { private string unusedField; public Sample() { unusedField = new string('a', 4); } } 

Using the quick deletion of "Undeletable field" in the "unusedField" field, a line is highlighted in the constructor (seeing that this line is updated). The editing template remains next to the line in which the field was declared.

enter image description here

+4
source share
1 answer

Using the fact that he highlighted the previous site using the field as a search result, you can use ReSharper | Find | Next Item (for me, using (I think) the default is VS keybindings Ctrl + Alt + PgDn ) to get there.

After that, you can Ctrl + Shift + L to delete the line (shortcut VS) or End , then Alt + Enter and Introduce variable (R #).

+1
source

Source: https://habr.com/ru/post/1397929/


All Articles