Please Login to Continue

Free Software Development Articles.Email List

Advertise Here

Visual Studio 2019 Development

Visual Studio Development Tips to Speed Up Development

  1. When starting to use Visual Studio, sometimes you don't want the browser to stop debugging or detach from the process.
    - Every time you stop debugging, and then refresh the browser the application stops showing because the IIS process is terminated

    Solution:
    - The way you solve this problem is: When debugging, don't stop debugging with a big red button (stop) instead navigate to the Debug menu and click on detach-all, this will leave the application running in the background so you can do your modification to the page and still see the changes in the browser.

    Short-Cuts in Visual Studio

  2. Ctrl + left arrow => To pad or apply formats to the code
  3. Ctrl + L => Cut the lines trailing in between code. Compacts the code together
  4. Ctrl + Space Bar => to See the properties of a DTO/POCCO object in C#
  5. Ctrl + RR => to rename every instance of the property or variable name at once
  6. Ctrl + f12 => to step into the C# Library code
  7. Highlight + Tab => to format or move code four spaces in
  8. Alt + Click + Drag => Muiltiple Code Selection

    Aligning the Code
  9. Tab => Select block of code and hit "Tab" to move the code right
  10. Shift + Tab => Select a block of code and hit "Shift + Tab" to move that block of code left.



    C#
  11. When using Linq, you can use object.Any(pass in an expression) just like you would use a Were Close to check whether the query does contain any data. This can be used when you want to be sure that the query will retrieve data.
  12. cw => will automatically write Console.Writeline() code If you are developing a Console Application
C# best practices Visual Studio 2019 Tips and Tricks Technology published
Buy Me Coffee

Was this page helpful?

Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful..



© 2020 - ErnesTech - Privacy