I often work with multiple checkouts of the same solution, but as they all have the same name, all the taskbar buttons appear the same. I would like to rename the taskbar buttons so I can identify solutions more easily.
I have written an autohotkey script, which almost works, or if anyone can suggest something better, I'd like to hear it.
This works on an explorer window, but fails on almost everything else.
#f2::
InputBox NewName, Rename Window, Enter a new name for this window:
WinGet CurrentWindow, ID, A
WinSetTitle, ahk_id %CurrentWindow%, , %NewName%
return
One possibility is that other windows rename themselves every frame. Putting the code in an infinite loop means that I can now rename Notepad2 windows (but not visual studio windows), but I can only run the script once!
Rename the solution in solution explorer. Don't commit into source control!
Related
I have a problem to use Autohotkey to open - File menu (inside of Visual Studio) and select "Recent projects & solutions". It works fine inside of notepad with this code:
^+r::
WinMenuSelectItem, Untitled - Notepad, , File, Open
Return
But it does not work inside VS:
WinMenuSelectItem, ahk_class Svitlana-PC • Sniffsters (Debug|Any CPU) - Microsoft Visual Studio, , File, Open
Probably because I cannot specify a wintitle correctly - I tried many variants from WinSpy, but I did not succeed.
Can anybody give me an advice or direction?
Thank you for reading.
Best,
Svitlana
Try activating the window (if that doesn't work, make the mouse click on the title bar of the window).
Then use !f to open the file menu and navigate the menu by sending letter keys. Microsoft programs are always tricky to work with.
Question:
Is there a way to make all files that are open in visual studio be highlighted in the solution explorer?
(I know there is a filter that you can filter it to show only open files but this dos me no good sense I am looking for a file that may not be open, I am not even sure what the name of the file is until I open it up and say there it is.)
Example Imagined GUI result: (Different colors are fine)
https://docs.google.com/file/d/0B31DHM9TkK99S3pWSms3QXR2Qk0/edit?usp=sharing
(image of what i am thinking, can not post image right now)
Solution Explorer
-Solution
+Stuff
+More stuff
-Code
+MyOpenFile.cs (Highlighting)
+MyNotOpenFile.cs
+MyOtherOpenFile.cs (Highlighting)
+MyCurrentlyOpenFile.cs (Highlighting, maybe a different color)
(the one with the red under line could be the active tab)
Background:
I don't know if this happens to any one else, but I have been doing it a lot for years now. While working on something I go to open up a file in the solution explorer and it turns out that the file is already open, and so visual studios just sets that file as the active tab. If I were working In just one window that would be fine, but I have few tab windows open beyond the main window and they are normally on a diffident monitor, so when the tab becomes active I do not see it at all, because it is not on the main window. This is even worse when I go to preview a file.
Icing on this cake:
-If it would have an option to highlight the parent nodes of open files, i the example "controllers" and "content" folders would be highlighted as well.
-If there was something that would do this for vs 2010 as well would be great.
I am looking for all most any thing at this point, an extension, a style sheet some where to edit, or as a last resort a good reference to a "How to code Extensions for Visual studios" website.
Edit:
As a point Of clarification I am not looking for a way to locate a specific file in the solution explorer, I am looking for a way to make the files that are open look visually different, so that I know to look around a bit before thinking that VS2012 is crashing or the file is messed up.
try an extension called VS commands. It will help you locate the files in solution.
Or this extension:
http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef/
I would like to write a program that Pins an APPLICATION like Microsoft WORD, EXCEL, and POWERPOINT to the taskbar on windows 7 or 8. I found the directory that hosts the shortcuts (%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar); however, when I create a shortcut and move it to that folder, the icon does not appear in the taskbar. Also, removing a file from that folder does not remove the icon from the taskbar, it just disassociates the icon from any shortcut. The next time you click on the icon it will display a message asking if you want to remove the pinned item. I would like to automate these processes as I use them a lot on multiple computers per day.
Found my answer elsewhere. VBScript is the way to go!
http://www.codeproject.com/Articles/185512/Programmatically-PIN-shortcut-onto-Taskbar-on-Win7
Old question but I was looking for a way to do this too, this way seem much simpler than using VB.
Create a new shortcut and set the target to: cmd.exe /c "path\to\script.bat". Then you can just right-click and pin it like other shortcuts.
Got the solution from here:
http://www.mysysadmintips.com/windows/clients/343-pin-bat-files-to-windows-8-start-screen
I type fast. Often times when programming I will select a line with Shift+End and then press the delete key, but I do this so quickly that my finger hasn't come off of the shift key. This results in replacing clipboard item with what was selected.
This is bad because many times I am deleting code before pasting some other code.
Apparently shift+del is an old school way of cutting.
I am aware of ctrl+shift+v for cycling through clipboard history in visual studio, but this is still terribly annoying.
Is there a way to disable this shortcut in visual studio or windows in general?
Good answer. Although I assume some people will still like to perform the delete operation.
To still perform the wipe of the entire line with SHIFT+DEL but don't add it to the clipboard:
remove (as explained above) the binding of SHIFT+DEL to the Edit.Cut command
AND
bind the SHIFT+DEL combination to the Edit.LineDelete command.
The keyboard shortcuts are pretty thoroughly customizable in Visual Studio.
Go to Tools > Options then in the left select Environment > Keyboard
Select the command, select the shortcut you want to remove, click "Remove" and click "OK"
If you wanted to circumvent this across Windows, you can use a one-line AutoHotkey script to convert Shift+Delete to just plain Delete:
+DELETE::SendInput,{DELETE}
There is an easier way.
The shortcut CTRL+SHIFT+L simply deletes the line you're on. Without having to select it first and without copying it to the clipboard.
This autohotkey script solve this globally:
+Delete::
KeyWait Shift
Send {Delete}
shift+insert is okay, but shift+delete is just plain EVIL
I actually often lost code entirely, while being utterly confused where'd it go! :-)
On Eclipse, whenever I double click a tab, it fills the workspace (by hiding all other views like project tree, console, etc).
Is there any way to do this on Visual Studio?
Note: i'm not looking for full screen, just want a way to declutter the workspace but still have access to menus.
Are you after this?
Set shortcuts for the Window.AutoHideAll function and for the Window.ResetWindowLayout function. In order for the ResetWindowLayout to work, you have to export your settings (make sure you select "All Settings") with all windows expanded and then import them again.
ResetWindowLayout will restore all windows to the way they were the last time you imported your settings.
Not with double click on tab, but you can do the same with Shift+Alt+Enter key combination.
This keyboard shorcut was changed to F11 from 1.9.1 vscode version.
All keyboard Shortcuts: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
I was looking for that, as well, and I now just got used to using full screen (Shift+Alt+Enter), which hides a little too much, which you seem to think, as well, but does in fact still show the menus.
Looks like drby got it on this one. Just FYI. I pinged the VS team to ask about this and here is the response:
"There is no way to reverse the command automatically. For it to work as a toggle we would need to save which toolwindows were auto hidden and which ones were not when the command was run, which we don’t do (it would cause lots of interesting persistence questions, across profiles and VS sessions)."
The idea of a "Unhide All" command is what I suggested. So if you hide all then you can unhide all as well. There might be some windows you don't want to unhide but the 1 or 2 extra windows is better than not having an unhide IMHO.