What does the following arrow icon mean in the Visual Studio 2012 gutter window? I've never seen it before.
This particular line of code has nothing special about it, nor do I recall doing anything to this line that would cause an arrow to appear. It's definately attached to this line of code. Moving the line of code down causes the arrow to follow.
I have no add-ons installed in Visual Studio.
It marks a Task List shortcut. You add them with Edit > Bookmarks > Add Task List Shortcut, [Ctrl+E,T] keystroke. That adds an entry to the task list, use View > Task List to display it. Select "Shortcuts" in the combobox. You'll see a list of all the shortcuts you added. Double-click an entry to jump to the line.
Remove it again with Edit > Bookmarks > Remove Task List Shortcut, [Ctrl+E,T] again.
NOTE: In visual studio 2015 and above, its [Ctrl+K,Ctrl+H]
Related
Whenever I press Ctrl + / to comment out a line in Android Studio in a C++ file, it just moves the caret down 1 line without making a comment. Creating a different keybinding for this shortcut has the same effect.
I've used this feature fine before, it only started happening when I opened up android studio today. I've tried disabling all plugins and restarting Android Studio to no avail.
If the keyboard shortcut doesn't work. Then try
Alt + Shift + Insert
What It will do is activate column selection mode, making it easy to just click and drag to select multiple lines of code that you can type on. It's easier than trying to make an entirely new keyboard shortcut.
The other way to do Column Selection Mode is to just right click anywhere on the code and it will be in menu popup, click to activate/de-activate.
In Android Studio I changed the tab key function from file > settings > keymap. I chose to remove all other bindings from tab key (mistake!!). And now I can't get auto-complete to work like before.
I want to select an item from the auto-complete pop-up then press tab to complete the word (I think this the default behaviour):
But when I press tab it "completes the sentence" and puts my cursor at the end of the line:
I don't want this, I want to just complete the word and the cursor to stay in place. This is my current configuration for tab:
How do I get the default behaviour back? I really don't want to reinstall Android Studio and it is driving me crazy.
--------------- edit ---------------
"Complete current statement" binding doesn't work:
Now when I press tab nothing happens, it doesn't auto complete at all.
Found the problem. Had to bind "Choose lookup item replace" to tab key to get the default / correct behaviour.
I'm wondering if this is just my ReSharper setup, but as of updating to Visual Studio 2015 with ReSharper Ultimate 9.1.3, using the Shift+Alt+L shortcut while editing a .resx in the designer does nothing.
Has anybody else experienced this, and is there any config that will get this working or is it a bug?
Thanks
This was caused (for me anyway) because my keyboard mapping had magically changed back to UK mapping from US (I want US).
The other day I had another issue that caused Resharper key mappings to go awry and followed some advice on another post (I can't find it at the moment) that want along the lines of:
Open Tools > Options > Keyboard and hit Reset
Open Resharper > Options > Keyboard & Menus, select "Visual Studio" and hit "Apply Scheme"
This should wrest control from Resharper back to Visual Studio and give Resharper the freedom it needs to wrest control back from VS.. ugh, but it worked
Maybe have a look to Stackoverflow - How to locate a file in Solution Explorer in Visual Studio 2010?.
Tools (in Menu) -> Options -> Keyboard -> goto input Show commands containing and type SolutionExplorer.SyncWithActiveDocument. Goto Press Shortcut Keys and press Shift + Alt + L click on Assign button.
You may get a warning that the shortcut is already in use.
The default IntelliJ / Android Studio "Redo" action shortcut is CTRL+Shift+Z and this is a common problem for Windows users.
A bigger problem is CTRL+Y is mapped to the "Delete line" action - and this causes the undo stack to be lost.
To solve this issue, how can the "Redo" shortcut be changed to CTRL+Y in IntelliJ?
Open Settings (press CTRL+ALT+S)
Click Keymap on the left list.
There is a combobox that contains keymaps. Select one of them (default means IntelliJ of course. We can't change any of pre-defined keymap however we can copy, edit and then use the edited one. So) we should copy "default" to change only redo mapping.
Give a new name to your copied keymap.
Right click on:
Main Menu -> Edit -> Redo to click "Add Keyboard Shortcut"
Press CTRL+Y
Click OK
Click "Remove" to "the shortcut is already assigned to other actions. Do you want to remove other assignments?"
If you want to use any "remove line" shortcut also, then go to delete line shortcut and give to it any other shortcut (like 5th step)
Click OK to close settings window.
Change the keymap setting to the Visual Studio, Eclipse, or NetBeans preset.
The settings window can be found under File > Settings. CTRL+ALT+S should work if the shortcut hasn't been changed. In the settings window you should find Keymap under the Appearance & Behavior settings list.
You can configure each editor command to a key combo that you like (as #ismail yavuz mentioned) such as for Redo to CTRL+Y or you can just change the Keymap setting to an editor that you are used to. This might be best if you are in the process of switching to IntelliJ as it is probably the path of least resistance. The default settings for the Visual Studio, Eclipse, and NetBeans keymaps all map Redo to CTRL+Y.
The Principle of least astonishment is strangely violated for Windows users but at least shortcuts is customizable. Because of this command being so contrary to the Windows experience I decided it wasn't worth learning the IntelliJ keyboard when anywhere you're working at you need to, you can quickly change. There are almost no drawbacks to not learning the IntelliJ. Remember that in the keymap menu you can search for a command in the search box or click on the magnifying glass on the right to search by key combo.
Of course neither answer is wrong. Chose your preference.
I am giving ReSharper for C# a whirl. I have found that I prefer Visual Studio's simpler "Find All References" over ReSharper's more detailed "Find All Usages". "Find All References" finds everything I need 95+% of the time. Does anyone know of a way to turn off "Find All Usages" and revert back the VS's implementation?
Unfortunately, there is no way to turn it off without turning the whole thing off.
Sorry, it takes a bit of getting used to.
To restore the original VS 'Find All References' command:
Go to ReSharper Options > Environment > Keyboard & Menus
Clear 'Hide overridden Visual Studio menu items'
The 'Find All References' command will be available in the context menu of a type
To restore the original 'Shift+F12' shortcut:
Go to Visual Studio Options > Environment > Keyboard
Enter 'Edit.FindAllReferences' in the search box
Set the cursor in the 'Press shortcut keys' field , press Shift+F12 and click 'Assign'
Select 'Text Editor' in the 'Use new shortcut in' selector, then set the cursor in the 'Press shortcut keys' field, press Shift+F12 and click 'Assign'
"Yet, selecting "None" on the Group By combobox of the Find Usages window gives a listing similar to VS's Find All References."
Unfortunately that is still a regression as the filename is not listed on the line items. Ironically the line/column coords are still displayed which seems a bit pointless without the context of the filenames.
I'm using ReSharper 8, and when I have many usages, I would prefer having VS's Find All References listing because it's more compact. Yet, selecting "None" on the Group By combobox of the Find Usages window gives a listing similar to VS's Find All References.