I'm aware of Build.PublishSelection as a shortcut to pull up the publish project window (and publish the entire project), but I would like to bind something to publish just the current file I'm editing. You can right click the file in solution explorer and publish it, but I have to do this 200+ times a day and those seconds add up.
Any hotkey command to do this or other possible workaround?
SHIFT + P to open the publish menu. SHIFT + Enter to publish to all domains.
Ctrl-Shift-F is used to find all the ocuurance of a string with in entire solution and display find result window as shown below. Ctrl-F is used to find a string in the current document, project and all open documents one by one.
All the browsers I know give you the option to close tabs using Ctrl+W in addition to the standard Ctrl+F4 in Windows.
In Visual Studio Enterprise 2017 this is the shortcut sequence (basically a path to the publish menu item):
Visual Studio 2022: Alt + B, H and hit Enter.
Visual Studio 2019: Alt + B, H and hit Enter.
Visual Studio 2017: Alt + ', Alt + P and hit Enter.
Creating a shortcut (works in any version): Go to Tools > Options > Environment > Keyboard
, look for Build.PublishSelection
, in Press shortcut keys
type e.g. Alt + P and click on Assign
.
For Visual Studio 2015:
Alt + ¨, Alt + P
will publish the currently selected file(s).
The ¨
key is the one just left of the enter
key.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With