In SQL Server Management Studio you can select a stored procedure, function, tablename and press ALT+F1 to get detailed information like paraments, columns, return values etc.
ALT+F1 – Show info
Posted in CodeTips | Tags: CodeTips SQL
CTRL+D,E – Exceptions
CTRL+D,E (Debug -> Exceptions), here you can specify when you want the debugger to break. Default the debugger does not break on Exceptions that are handled, but here you can say that it should break on all thrown exceptions.
Posted in CodeTips | Tags: VisualStudio vs code tip
ALT+Shift+F10 – Refactor
You can use ALT+Shift+F10(or right click and choose refactor) to refactor some code.
Generate method Stub
For example you write a method name of a method that does not exists, you put the cursor on the not existing method call and press ALT+Shift+F10 and Visual Studio will automatically create a method stub for you.
Resolve
You can also ALT+Shift+F10 on a class where you do not imported the correct namespace, this will then for you create the correct using statement, or will put the namespace in front of the class.
Refactor
There are many more refactorings you can use like: Rename, Extract Method, Encapsulate Field, Extract Interface, Promote Local Variable to Parameter, Remove Parameters, Reorder Parameters
Posted in CodeTips | Tags: VisualStudio vs code tip
F12 – Goto Definition
Select a method and press F12 (or right-click and choose Go To definition) to go to it’s definition
Posted in CodeTips | Tags: code tips c# visualstudio
Console.WriteLine(“Hello world!”);
This is the first post and just a test..
Posted in Uncategorized