Giter Site home page Giter Site logo

2mas / selectnextoccurrence Goto Github PK

View Code? Open in Web Editor NEW
158.0 9.0 9.0 509 KB

A Visual Studio Extension that selects the next occurrences of the current selection and adds multiple cursors for editing

License: Other

C# 100.00%
visual-studio keyboard shortcut select-multiple selection

selectnextoccurrence's Introduction

Select Next Occurrence

Download this extension from the VS Gallery

For version supporting 2017 and 2019, download here


This extension makes it possible to select multiple occurrences of a selected text for simultaneous editing with multiple cursors. Provides the most common multi-editing features.

Aims to replicate the multi-editing features of Sublime Text/Visual Studio Code for faster coding.

See the change log/roadmap for changes and Roadmap.

What differs this from the built-in multi-edit of VS 2019/2022?

Feature Select Next Occurrence Visual Studio
Multiple cursors Yes Yes
Can undo cursor Yes Yes
Can select all occurrences Yes Yes
Can skip occurrence Yes Yes
Can select backwards/up Yes No
Can add caret above/below Yes Kind of, different implementation *
Can add caret by mouse Yes Yes *
Can convert selection to carets Yes No
Can search both case insensitive and exact Yes No, only exact
Multi copy/paste across files and to external programs Yes Yes *
Supports VS 2022 Yes Yes
Supports VS 2019 Yes Yes
Supports VS 2017 Yes From v15.8
Multi-cursor IntelliSense No No

* Unsure when

Features

  • Select next occurrence of current selection
  • Select next exact occurrence (overrides Find-dialog)
  • Select previous occurrence
  • Select previous exact occurrence (overrides Find-dialog)
  • Select all occurrences
  • Convert a selection into multiple cursors
  • Skip occurrence
  • Undo occurrence
  • Add caret above/below
  • Use multiple carets to edit
  • Add carets by mouse-clicking, press ALT and click to add a new caret or to remove caret/selection at clicked position
  • Copy/paste multiple selections, also to external programs

Select Next Occurrence


Options

  • Toggle case-sensitive search by using the "Match case" setting from the find-dialog (Ctrl+F)

  • Toggle match-whole word search by using the "Match whole word" setting from the find-dialog (Ctrl+F)

  • Options-dialog: Add cursors by mouse-clicking - true by default

  • Options-dialog: Keep caret on first entry - false by default, activates behaviour to keep caret on first entry when pressing escape

Select Next Occurrence Options dialog


Key-bindings

Go to Tools -> Options -> Environment -> Keyboard and search for these command names to edit at your choice. Make sure the Use new shortcut in is set to: Text Editor

Command (prefix SelectNextOccurrence.) Recommendation
SelectNextOccurrence Ctrl+D
SelectNextExactOccurrence
SelectPreviousOccurrence Ctrl+E
SelectPreviousExactOccurrence
SelectAllOccurrences Ctrl+K, Ctrl+A
SkipOccurrence Ctrl+K, Ctrl+D
UndoOccurrence Ctrl+U
AddCaretAbove Ctrl+Alt+Up
AddCaretBelow Ctrl+Alt+Down
ConvertSelectionToMultipleCursors Ctrl+Shift+I or Alt+Shift+I (vscode))

Select Next Occurrence Keyboard bindings


Troubleshooting

  • Nothing happens when pressing assigned keys

Check that the key-bindings are correct and that the Use new shortcut in is set to: Text Editor.

  • Nothing happens when ALT + left-clicking mouse button to add new caret, multiple edits are unresponsive

There is a possibility that other plugins use this functionality too, and a conflict occurs. Please check for other installed plugins with this feature and try to disable.

  • Copy/cut multiple occurrences doesnt work as expected

There is a conflict with the extension Copy As Html, if you have this enabled, try to disable it and see if this helps.


Contribute

Check out the contribution guidelines if you want to contribute to this project.

License

Apache 2.0

selectnextoccurrence's People

Contributors

2mas avatar leachdaniel avatar mr-badger avatar ngzaharias avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

selectnextoccurrence's Issues

Unexpected Add Caret Above Behaviour

Installed product versions

  • Visual Studio: 2019 Professional v16.4.5
  • This extension: v1.3.150

Description

When adding carets above some lines will have two carets added to a single line, usually separated by a few tabs worth of space.

Steps to recreate

  1. Using key binding Shift + Alt + Up_Arrow add multiple carets above the current

Current behavior

When adding a caret above a caret is added directly above as expected, but on the same line the new caret was added to a second caret is added a few tabs over. This causes me to add characters to additional places I do not want to add characters.

Demonstration of behavior

CaretAboveExample

Expected behavior

Adding a caret above will add only one caret to the line above not two carets to the line above.

Undo and skip are not functional

Installed product versions

  • Visual Studio 2017.5.3 and 2017.5.4
  • This extension: 1.1.1.1

Description

Undo and skip are not functional

Steps to recreate

  1. Multiselect with Ctrl+D works fine. Yippee!
  2. Assign Skip (Ctrl+K, Ctrl+D) and Undo (Ctrl+U) as suggested.
  3. Skip (Ctrl+K, Ctrl+D) does nothing.
  4. Undo (Ctrl+U) undoes ALL multiselect, and not just the last one as expected.
  5. There is a ghostly glowing to the selected text as if it is constantly being redrawn which seem worrisome.

[FeatureRequest] Supports for Microchip/AVR Studio

Installed product versions

  • Microchip Studio (former AVR Studio, based on Visual Studio Shell 2015)
  • This extension: 1.3.175

Description

Is there any chance to add a support for Microchip / AVR Studio?
This is my favorite extension for VS, but time to time I have to develop a piece of code for AVR microcontrollers and then I realise how I'm addicted from this extension. Because Microchip/AVR Studio is based on VS2015, maybe it could be doable to supports it?

Current behavior

Doesn't supports.

Copy-paste multiple selections between files

Installed product versions

  • Visual Studio: 2017 community 15.8.1
  • This extension: 1.3.43

Description

Copying multiple selections from a file and pasting in another (or even the same file in a different tab) just pastes the last selection. Maybe a conflict with the new multi-caret support introduced in VS 15.8?

Steps to recreate

  1. Open two files in different tabs, OR open one file and use Window -> New Window to open a new view in a different tab.
  2. Multi-select anything and hit CTRL+C
  3. Go to other tab and hit CTRL+V

Current behavior

Only the contents of the last selection is inserted.

Expected behavior

The contents of every selection should be inserted, each one in a line.

Feature request: Command to insert a generated sequence of values across carets

Summary

Add command that generates sequences of values to insert across carets.

Description

Quite a few times I've needed to insert 1, 2, 3, ... across lines or statements. It'd be handy to be able to generate values to insert at each caret.

In it's simplest form, a sequence of increasing integers starting at 0 or 1 would be useful. More exotic sequences with different step sizes, alphabetic members, decimal/octal/hex rendering and so forth. I don't know how this would be feasible without some kind of UI.

Sugerencia combinaciones de tecla `para "SelectNextOccurrence"

Sugerencia combinaciones de tecla para "SelectNextOccurrence"

Installed product versions

  • Visual Studio: [ 2017 Community 15.9.7 ]
  • This : [1.3.69]

Description

Se sugiere utilizar [Ctrl + Alt + <] como comando de SelectNextOccurrence.
Dado que dicha combinación no existe en Visual Studio 2017 Community.
Por lo que dicha combinación no entrará en conflicto con otras asignaciones.
Así mismo, dicha combinación es fácil de usar con la mano izquierda.

SelectNextOccurrence. ……………………………………………….……........ [Ctrl + Alt + <]
SelectNextOccurrence. (InsertNewSelecction w/mouse) ......….. [Ctrl + Alt + <] + [Click Izq.]
SelectNextOccurrence.SelectAllOcurrences. ………….….….....…….. [Ctrl + Alt + <] + [Ctrl + Alt + Inicio]
SelectNextOccurrence.ConvertSelectionToMultipleCursors …... [Ctrl + Alt + <] + [Ctrl + Alt + Insert]
SelectNextOccurrence.AddCaretAbobe …………...……......….………. [Ctrl + Alt + <] + [Ctrl + Alt + Re Pag]
SelectNextOccurrence.AddCaretBelow ……………….….….........……. [Ctrl + Alt + <] + [Ctrl + Alt + Av Pag]
SelectNextOccurrence.SelectNextOccurrence ……….….......….…... [Ctrl + Alt + <] + [Ctrl + Alt + Flecha Der]
SelectNextOccurrence.SelectPreviousOccurrence ……........……... [Ctrl + Alt + <] + [Ctrl + Alt + Flecha Izq]
SelectNextOccurrence.SelectNextExactOccurrence ……........…….[Ctrl + Alt + <] + [Ctrl + Alt + Flecha Arr]
SelectNextOccurrence.SelectPrerviousExactOccurrence …......... [Ctrl + Alt + <] +[Ctrl + Alt + Flecha Abj]
SelectNextOccurrence.SkipOcurrence …………………………......……. [Ctrl + Alt + <] + [Ctrl + Alt + Fin]
SelectNextOccurrence.UndolOcurrence …………………………......…. [Ctrl + Alt + <] + [Ctrl + Alt + Retoceso]

Gracias por tan útil aplicación.
N.B. Siento hacerlo en español, mi inglés es muy malo.

Using arrow keys when using multiple cursors

Installed product versions

  • Visual Studio:2017 Enterprise 15.8.0 Preview 3.0
  • This extension: 1.3.31

Description

If you use Alt-Click to add multiple cursors, and then use the arrow keys, all the cursors do not move as one on the initial arrow key press

Steps to recreate

  1. Alt+Click to select multiple cursors directly underneath the first cursor.
  2. Carefully watch the cursors and press the left arrow key

Example GIF of the behavior I see

link: https://www.dropbox.com/s/9vz2dd060at6lml/multipleCursorIssue.gif?dl=0

Current behavior

The original cursor location does not move the first time you press the arrow key, yet the extra cursors do move on that first arrow key press. All the cursors move in tandem on and after the 2nd arrow key press.

Expected behavior

All cursors should move in tandem starting with the first arrow key press.

Statement completion/Intellisense multiple insert

Installed product versions

  • Visual Studio Community
  • This extension: 1.2.8

Description

I would prefer the statement completion to work with multiple edits, so far I have not come up with a good solution for this, so help is appreciated

Steps to recreate

  1. Select multiple selections
  2. Trigger an intellisense dialog and make a selection

Current behavior

The completion will only be inserted into the last selection (popup closes too fast too)
statement_completion_current

Expected behavior

Same completion on all occurrences
statement_completion_expected

CreateInstance failed for package

Installed product versions

  • Visual Studio: 2017 Enterprise (Version 15.9.6)
  • This extension: 1.3.69

Description

I started getting this error at startup after restarting Visual Studio.

error

Steps to recreate

  1. Install SublimeVS

Error from ActivityLog.xml

<entry>
    <record>2369</record>
    <time>2019/02/26 15:03:31.400</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [SelectNextOccurrencePackage]Source: &apos;mscorlib&apos; Description: Could not load file or assembly &apos;file:///c:\users\username\appdata\local\microsoft\visualstudio\15.0_7e608ac3\extensions\xw5znqm4.yak\SelectNextOccurrence.dll&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;System.IO.FileNotFoundException: Could not load file or assembly &apos;file:///c:\users\username\appdata\local\microsoft\visualstudio\15.0_7e608ac3\extensions\xw5znqm4.yak\SelectNextOccurrence.dll&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;file:///c:\users\username\appdata\local\microsoft\visualstudio\15.0_7e608ac3\extensions\xw5znqm4.yak\SelectNextOccurrence.dll&apos;&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence)&#x000D;&#x000A;   at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)&#x000D;&#x000A;   at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)&#x000D;&#x000A;&#x000D;&#x000A;WRN: Assembly binding logging is turned OFF.&#x000D;&#x000A;To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.&#x000D;&#x000A;Note: There is some performance penalty associated with assembly bind failure logging.&#x000D;&#x000A;To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
    <guid>{70CEADAA-6E24-4D6D-92AA-6E5A836CA8F2}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>

ReSharper's CamelHumps select option breaks Multiple carat Shift+Ctrl select for multiple carats

Installed product versions

  • Visual Studio: 2017 Enterprise
  • This extension: 1.2.17

Description

When ReSharper's CamelHumps option is enabled. After placing multiple carats, Shift+Ctrl+Arrow keys only selects for the last carat and not for the others. --- I know this is dealing with another extension but ReSharper is popular enough that you might want to try making this one play well together. Right now I have to choose between having camel selection or multi selection.

Expected behavior

All carats should select by word, honoring camel case.

(CamelHumps makes Shift+Ctrl+Arrow respect camel casing when selecting words. Disabling CamelHumps makes the multi selection work as expected with words.)

The "Use multiple carets to edit" is buggy

Installed product versions

  • Visual Studio: 2017 Community
  • This extension: 1.1.1.1

Description

When I Alt+Click to setup multiple carets to edit, then it will become no response, no input, nothing happen when I typing until I hit Escape key will release this situation.

Steps to recreate

  1. Alt+Click multiple place inside a HTML/Razor page.
  2. type anyting
  3. no effect.

Current behavior

When I Alt+Click to setup multiple carets to edit, then it will become no response, no input, nothing happen when I typing until I hit Escape key will release this situation.

Expected behavior

I expected to edit in multiple place concurrently.

Build Configuration Drop Down Values Disappear when editing a .cs file

Installed product versions

  • Visual Studio: [example 2017 Community]
  • This extension: [SelectNextOcurrence 1.3.44]

Description

When enabled I have this issue:
https://stackoverflow.com/questions/52286346/visual-studio-2017-build-configuration-missing/52286432#52286432

Steps to recreate

See Stack Overflow post.

Current behavior

Build Configuration Drop Down Values Disappear when editing a .cs file

Expected behavior

Build Configuration Drop Down Values never disappear.

Weird selection behaviour

Installed product versions

  • Visual Studio: [2019 Professional]
  • This extension: [1.3.150]

Description

Weird selection behaviour when starting with multiple carets wihout selections

Steps to recreate

AddCaretBelow three times and then SelectNextOccurrence
behaviour

Current behavior

Misses one occurrence

Expected behavior

Selects all occurrences

Dot character only added to the last selection

Installed product versions

  • Visual Studio: 2017
  • This extension: 1.3.32

Description

Adding a dot character after writing (a-z) characters only adds the dot in the last selection caret.

Steps to recreate

  1. Select some word that occurs multiple times
  2. Write another word to replace the selected occurrences
  3. Write a dot character "."

Current behavior

Only the last selection caret gets the dot character added

Expected behavior

All of the selections should get the dot character added

Copy and paste not working as I would expect

Installed product versions

  • Visual Studio: 2017 Professional
  • This extension: 1.1.1.1

Description

Copy and past does not work as I would expect when multiple selections are active. It appears to paste the last value selected, rather than the value selected for each line.

Steps to recreate

Given some text:

	INSERTED.ID,
        INSERTED.TICKET_ID,
        INSERTED.QUANTITY,
  1. select the word INSERTED
  2. press ctrl-d twice to select all occurances
  3. press right twice to more the cursor to the first letter of the next word
  4. press shift-ctrl-right to select the next words, i.e. ID TICKET_ID and QUANTITY will now be selected
  5. press ctrl-c to copy to clipboard
  6. press right twice to move to after the last comma
  7. press ctrl-v to paste, QUANTITY is pasted on every line

Current behavior

	INSERTED.ID, QUANTITY
        INSERTED.TICKET_ID, QUANTITY
	INSERTED.QUANTITY, QUANTITY

Expected behavior

	INSERTED.ID, ID
        INSERTED.TICKET_ID, TICKET_ID
	INSERTED.QUANTITY, QUANTITY

Unexpected Add Caret Below Behaviour

Installed product versions

  • Visual Studio: 2019 Professional v16.4.5
  • This extension: v1.3.150

Description

Making a chain of carets via Add Caret Below places the last caret in the chain at the end of the last line, instead of directly below the penultimate caret in the chain.

Steps to recreate

  1. Create block of text on multiple lines with the same level of indentation
  2. Place cursor at start of the first line
  3. Add carets below until you reach the last line
  4. Last caret in the chain added to the last line of the text block will be placed at the end of the last line, instead of at the beginning of the last line directly below the penultimate caret that was added in the chain.

Current behavior

When creating a chain of caret by adding carets below the main caret, when the last line in a block of text is reached, the last caret added below is added to the end of the last line instead of being added directly below the previous caret that was added in the chain.

Gif of observed behavior

CaretBelowExample

Expected behavior

The last caret added in the chain be directly below the penultimate caret in the chain resulting in a straight line of carets in the chain.

Copy/Cut and Paste Behaviour Not Working as Expected

Installed product versions

  • Visual Studio: Visual Studio Professional 2019 16.0.1
  • This extension: 1.3.83

Description

I am experiencing the exact behaviour that was expressed in closed issue #4

From looking at the change logs it looks like this was resolved in v1.2 so I'm assuming this is due to something I've implemented incorrectly.

Steps to recreate/Current behavior/Expected behavior

If you reference Issue 4 that is linked above, everything I would type for this section would be a verbatim retelling of what user, busterwood, has already taken the time to write and explain.

Maybe this fixed functionality may have been broken due to later changes? If there is more information I can provide that I have left out, I apologize, please just let me know.

Thanks so much btw for the time and effort put into this extension. Ever since MixEdit was removed from the VS Marketplace I was never able to find a comparable extension to replace it until now. I really can't thank you enough.

SelectNextOccurrence.AddCareBelow and Above don't work correctly when view hold tabs

Installed product versions

  • Visual Studio: Visual Studio Professional 2019
  • This extension: 1.3.132

Description

SelectNextOccurrence.AddCareBelow and Above don't work correctly when view hold tabs (as tabs).

Steps to recreate

  1. Example text:
    first line starting with tabs
    second line that is not using taps AT the beginning
    third line uses tabs at the beginning
  2. Set your caret at the second line, for instance, at the word AT.
  3. AddCaretAbove or Below
  4. Notice you didn't get the caret where you would expect

Current behavior

Caret is not placed in the same column when possible.
It looks like a tab is a count as a single character, instead of 4 (or whatever tab is configured).

Expected behavior

It should keep the caret at the same column regardless of using tabs or not.

Feature Request

This is not a bug, but if it isn't too hard there are a couple features that I think would make this THAT much sweeter!.

Both would involve a modifier key.

So by default we have the Ctrl + D to select the next instance. It would be cool if you could do a Ctrl + Shift + D to skip the next instance. The use case here is that a word in a variable also appears in a comment. There are times that it would be nice to be able to skip the comment instance of the selection.

The other would be to have something like Ctrl + Alt + D to toggle whether it the selection is case specific. This functionality in VS Code was always case insensitive which cased it to not always select the correct instances, but 90% of the time it did.

MSFT support on this

Hi,
I just commented on exactly this extension here:
https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/4408859-native-multi-editing-multiple-cursors-and-selecti
At that time I wasn't avare of this extension sorry :(

I somehow got into contact with some Visual Studio Program Manager from MSFT and got 2 hour call with him about all features that this extension provides.
I am not quite sure how you do the multi-caret, I will have to analyze your source tommorow, however I was told, that there should be some proper multi-caret support in VS editor for handling multiple carets. So in the near future this extension could get a proper API support with some really fast editing.

Looking forward to it and if you could contact me on [email protected] I am sure that VS PM from MSFT would totally liked to talk to you @2mas
Thanks!
P.S.: Also I will be definitely contributing to this extension

Feature request: setting for choosing first or last entry on escape key

Installed product versions

  • Visual Studio: 2017 Professional 15.9.12
  • This extension: 1.3.132

Description

If you select multiple occurrences with "ctrl+d" (SelectNextOccurrence), and then press escape button, all the cursors are deleted except last, that becomes your main cursor. But in sublime text 3, same steps leaves you with first cursor (the top one), and this is more convenient for me. So I ask you to do a setting, where you can choose which cursor is left, if you press escape button (basically deselect): first or last.

Steps to recreate

  1. Select some word
  2. Press Ctrl+D or what key is bound for "SelectNextOccurrence"
  3. Deselect by pressing escape button

Current behavior

The remaining cursor will be the last cursor in the list

Expected behavior

I'm asking for a setting where the remaining cursor will be the first cursor in the list

Feature request: SelectNextExactOccurrence

Installed product versions

  • Visual Studio: 2017 Professional
  • This extension: 1.3.32

Description

There is currently support for finding the exact word as long as it is selected in the search menu. (Quote: "Toggle case-sensitive search by using the "Match case" setting from the find-dialog (Ctrl+F)")

I was wondering if you could add a shortcut for selecting the next exact occurrence that doesn't require toggling on the "match case" option in search?

Undo behavior differs with multiple cursors

Installed product versions

  • Visual Studio: 15.6.4
  • This extension: 1.2.17

Description

If you write a word or sentence in VS normally, and press Undo, it deletes that entire word/sentence (not entirely sure what they base the grouping on).

However, if you write the same thing with multiple cursors, and press Undo, you instead only delete the last character you wrote. The difference in behavior here is somewhat jarring.

Cursor jumps to bottom of screen when attempting to scroll through intellisense options with arrow keys

Installed product versions

  • Visual Studio: 2019 16.8.3
  • This extension: 1.3.172

Description

Cursor jumps to bottom of screen when attempting to scroll through intellisense options with arrow keys.

Steps to recreate

  1. Highlight variable with CTRL+D
  2. Delete variable
  3. Type in portion of variable, until intellisense pops up and provides some suggestions
  4. Try to scroll through intellisense only to have cursor jump to bottom of file.

(If you press escape after step 2, you won't experience this issue. It is however easy to forget to do this, and having your cursor yank you away from your current work is pretty jarring.)

select_next_error

Current behavior

After highlighting a variable with CTRL+D and deleting it, when I next type in the name of a variable and try to scroll through the intellisense window my cursor jumps to the bottom of the file.

Expected behavior

Scroll through intellisense without cursor jumping to bottom of file.

Copy/paste multiple selections to one cardet

Installed product versions

  • Visual Studio: 2017 CE
  • This extension: 1.2.17

Description

Pasting multiple selections to one cardet only paste the last selection.
(I do not have the "copy as html" plugin installed)

Steps to recreate

Given this text

DataGrid.CreateDataSet("Data1");
DataGrid.CreateDataSet("Data2");
DataGrid.CreateDataSet("Data3");
  1. select the word DataGrid
  2. press ctrl-d multiple times to select all occurances (or other shortcut)
  3. press ctrl + right three times to more the cursor to the first letter of dataset name
  4. press shift-ctrl-right to select the names
  5. press ctrl-c to copy to clipboard
  6. click somewhere in the file so only one cardet is left
  7. paste

Current behavior

Currently it only paste the last selection and loses the rest

DataGrid.CreateDataSet("Data1");
DataGrid.CreateDataSet("Data2");
DataGrid.CreateDataSet("Data3");

Data3

Expected behavior

I expected to have all values pasted (like in other editors, e.g. atom, sublime)

DataGrid.CreateDataSet("Data1");
DataGrid.CreateDataSet("Data2");
DataGrid.CreateDataSet("Data3");

Data1
Data2
Data3

URL broken on marketplace

Hi there!

It seems like the download URL is broken on the market place. It goes to:

https://thomaswelen.gallerycdn.vsassets.io/extensions/thomaswelen/selectnextoccurrence/1.3.69/1550589988048/Select_Next_Occurrence_v1.3.52.vsix

It seems changing it to https://thomaswelen.gallerycdn.vsassets.io/extensions/thomaswelen/selectnextoccurrence/1.3.69/1550589988048/Select_Next_Occurrence_v1.3.69.vsix triggers the correct download.

I don't know much about how the VS market place works so not sure if you have control over that URL.

Cheers,
James

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.