In VSCode, I'd like to be able to transform multiple search hits into multiple cursor locations.
In VSCode, I'd like to find all instance of a term (e.g., "fred") and insert a cursor at each location where the term appears. Here, the particular interest is using alt-arrow to reposition the lines in the code. I'm aware that I can alt-shift-I to turn a selection into multiple line cursors but I haven't gotten this too work with the search/replace box. (I could also write a regex expression to do this, but it would be more straightforward with a multiple cursor.)
In the sample below, the pipe | character represents an insertion point. What I want to do is use the find command to locate all the instances of "fred" and then have a cursor appear at the fred locations. E.g.,
var first = {
name: fred|,
location: NJ
};
var second = {
name: fred|,
location: CT
};
var thrid = {
name: jane,
location: OH
}
var fourth = {
name: fred|,
location: WY
}