How to move a block of code to the left in text editors / ide - visual-studio

I use Sublime Text 3 and Visual Studio 2013, I'd like to know if it's possible and how one would be able to highlight a block of code and move or drag it to the left. This would be the opposite of highlighting a few lines of code and hitting the tab button to shift them to the right. Is it a shortcut, a macro, a simple general thing?

In Sublime Text, you can use the keyboard shortcut Ctrl] to move lines or blocks of text to the right, and Ctrl[ to move to the left.

In windows/linux, the shortcut is Ctrl+[or]
In Mac, the shortcut is Command+[or]

Related

How to disable triple click in Visual Studio

Is there a way, either built-in or by third-party extension, to disable triple-click from selecting the entire line while in a text editor? Either my mouse is too sensitive, or I'm inadvertently doing it, but more often than not, clicking a word, then copy / pasting it results in pasting of the entire line -- not my intention and very annoying. Ideally, it could be disabled (aka any click more than 1 just selects the word the cursor is over)
As already stated in the comments the problem is most likely that the word highlighting color is so similar to the color of selected text. So seems like we sometimes deselect a word instead of selecting it. And without a selection Ctrl-C copies the whole line. I had the same issue with JetBrains WebStorm. In Visual Studio for me it was ReSharper.
Changing the color helps. Tools -> Options -> Environment -> Fonts and Colors -> "ReSharper Usage of element under cursor". I made that darker such that selected text is clearly distinguishable.

Brakets keyboard shortcut to move focus to treeview

This should have been relatively easy to fine out , turns out its not, so actually all i really want is a shortcut with which i can toggle between the text editor and the treeview on the left.
The brackets documentation really don't mention any such shortcut see here.
In Atom text editor for example there is a shortcut ctrl+0 which shifts focus to the tree view , i can't seem to find such a shortcut in brackets though. I love all the features of brackets, but i just seem to be short of this one last shortcut to make my work flow awesome !!
Thank you.
Alex-z.

Visual Studio - move cursor to out of closing brace keyboard shortcut?

Given the following code example
someMethod(②someArgument①);③
I know moving the cursor from position ①->② shortcut is CTRL+], is there a ①->③ shortcut.
Is there a keyboard shortcut that escapes the brace when cursor is just left of brace (Not with End key).
In Eclipse, It can easily work with Tab key.
(In Visual Studio) - Try Ctrl+Shift+] - That seems to select text to where you might need to be, but if you press the ] again, by itself, it deselects, but leaves the cursor where you appear to want it.
Is that what you're looking for?

VS2012 keyboard shortcut for "expand selection to tag"?

Is there a keyboard shortcut / free extension in Visual Studio 2012 to extend the selection to the logical code block?
For example when editing HTML, I'd like to be able to put my cursor in an opening tag and select to the matching closing tag, including all elements nested inside.
Sublime Text 2 has an "Expand Selection to Tag" option (Ctrl + Shift + A) for this purpose.
Thanks
Thanks to #JaredReisinger who pointed out that the "tag navigator" at the bottom of the HTML editor allows this kind of functionality, albeit with the mouse rather than the keyboard.

Keyboard shortcut to rename a variable?

In Visual Studio, when you change the name of a variable, a small red square appears underneath it and when you hover over it, a bigger yellow box appears, and when you click on that an option appears to automatically rename all instances of that variable to the new name. Is there a keyboard shortcut for this? It would be much faster than trying to hover over the tiny red box for half an hour... (if it matters I'm using the C# code editor)
EDIT: I am aware of CTRL+. but is there one where you don't have to press enter afterwards? :-)
F2 displays the Rename dialog box, which allows renaming all references for an identifier.
You can rename variables of this easy ways: Right click -> Rename or Ctrl+R-> Ctrl+R

Resources