Are you annoyed by the default project location in Visual Studio? Check out this tutorial and learn how to modify it to suit you needs.
Source: Changing default project directory in Visual Studio 2017 – Daniel Zikmund
My bookmarks and blogposts regarding Software Development in .NET, C#, Angular, JavaScript, CSS, Html
Are you annoyed by the default project location in Visual Studio? Check out this tutorial and learn how to modify it to suit you needs.
Source: Changing default project directory in Visual Studio 2017 – Daniel Zikmund
A simple WCF test client is included in Visual Studio.
It resides here for my Visual Studio 2017 installation:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\WcfTestClient.exe
A very usable keyboard shortcut when working with html in Visual Studio.
Visual Studio 2015 comes with a new shortcut, Shift+Alt+W wraps the current selection with a div. This shortcut leaves the text “div” selected, making it seamlessly changeable to any desired tag. This coupled with the automatic end tag replacement makes for a quick solution. UPDATE This shortcut is available in Visual Studio 2017 as well, but you must have the “ASP.NET and Web Development” workload installed. Example Shift+Alt+W > p > Enter
Source: How do I wrap a selection with an HTML tag in Visual Studio? – Stack Overflow
In TFS / Visual Studio 2012, you have a few options.
Rollback to a specific version
In Source Control Explorer:
Rollback a single changeset (you can do this through the dialog loaded above too)
Checkin the rollback.
Source: visual studio – Rollback a changeset in tfs – Stack Overflow
Error in Visual Studio 2017 in output window from task manager:
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 5.x
Found bindings for the following environments:
– Windows 64-bit with Node.js 8.x
Solution
For VS 2015
For VS 2017(.3)
See stackoverflow here:
Source: node.js – Node Sass could not find a binding for your current environment – Stack Overflow
This is a super simple extension that adds shortcuts to Tools menu to attach to IIS, IIS Express, as well as any exe files found within the currently loaded solution (Attach To Solution).
Source: Attach To All The Things – Visual Studio Marketplace
Adds a timestamp to the Visual Studio 2017 output window.
Timestamp margin Adds the timestamp information to the Output Window in Debug mode: (minutes. Seconds. Milliseconds) Helps keep a track of running processes in the debug window.
Source: Time Stamp Margin – Visual Studio Marketplace
If you prefer to use Chrome’s or IE’s own dev tools to do client-side debugging, the recent update to Visual Studio 2017 RC introduced a setting to disable the IE and Chrome script debugger (this will also prevent Chrome/IE from closing after a debugging session ends). Go to Tools -> Options -> Debugging -> General and turn off the setting Enable JavaScript Debugging for ASP.NET (Chrome and IE).
This needs to be done as well sometimes:
Tools > Options > Projects and Solutions > Web Projects, uncheck “Stop debugger when browser window is closed”
Source: Client-side debugging of ASP.NET projects in Google Chrome | .NET Web Development and Tools Blog
I had an issue with Javascript files having no color syntax highlighting in Visual Studio 2017.
I first found this:
https://github.com/Microsoft/TypeScript/issues/14422
which focused on a TypeScript related problem and didnt help my issue.
I have ReSharper installed, enabling the settings below solved my issue:
To toggle ReSharper syntax highlighting Open the Code Inspection | Settings page of ReSharper options. Use the Color Identifiers check box to enable or disable ReSharper syntax highlighting. Click Save to apply the modifications and let ReSharper choose where to save them, or save the modifications to a specific settings layer using the Save To drop-down list. For more information, see managing and sharing resharper settings.
This lightweight extension lets you display the full path of the file at bottom of Visual Studio’s Editor. Click Ctrl+Click to Open Containing Folder, Right click to Copy Full Path.