How can I toggle word wrap in Visual Studio?

Following https://docs.microsoft.com/en-gb/visualstudio/ide/reference/how-to-manage-word-wrap-in-the-editor When viewing a document: Edit / Advanced / Word Wrap (Ctrl+E, Ctrl+W) General settings: Tools / Options / Text Editor / All Languages / Word wrap Or search for ‘word wrap’ in the Quick Launch box. Known issues: If you’re familiar with word wrap in Notepad++, Sublime Text, or Visual Studio Code, be … Read more

Where is the IIS Express configuration / metabase file found?

The configuration file is called applicationhost.config. It’s stored here: My Documents > IIS Express > config usually, but not always, one of these paths will work %userprofile%\documents\iisexpress\config\applicationhost.config %userprofile%\my documents\iisexpress\config\applicationhost.config Update for VS2019 If you’re using Visual Studio 2019+ check this path: $(solutionDir)\.vs\{projectName}\config\applicationhost.config Update for VS2015 (credit: @Talon) If you’re using Visual Studio 2015-2017 check this … Read more

How to configure Visual Studio to use Beyond Compare

In Visual Studio, go to the Tools menu, select Options, expand Source Control, (In a TFS environment, click Visual Studio Team Foundation Server), and click on the Configure User Tools button. Click the Add button. Enter/select the following options for Compare: Extension: .* Operation: Compare Command: C:\Program Files\Beyond Compare 3\BComp.exe (replace with the proper path … Read more

I want to delete all bin and obj folders to force all projects to rebuild everything

This depends on the shell you prefer to use. If you are using the cmd shell on Windows then the following should work: FOR /F “tokens=*” %%G IN (‘DIR /B /AD /S bin’) DO RMDIR /S /Q “%%G” FOR /F “tokens=*” %%G IN (‘DIR /B /AD /S obj’) DO RMDIR /S /Q “%%G” If you … Read more

How to stop browser closing automatically when you stop debugging on VS 2017

Visual Studio 2017 version 15.7 and higher & Visual Studio 2019 changed things again. Disabling the following checkboxes will allow you to keep the browser open (doesn’t close after stop debugging) and opens another tab (instead of another window): Tools > Options > Debugging > General Disable “Enable JavaScript debugging for ASP.NET (Chrome, Edge and … Read more

Proper way to rename solution (and directories) in Visual Studio

Manually edit .sln file This method is entirely aimed at renaming the directory for the project, as viewed in Windows Explorer. This method does not suffer from the problems in the Remove/add project file method below (references disappearing), but it can result in problems if your project is under source control (see notes below). This … Read more

What is “stdafx.h” used for in Visual Studio?

All C++ compilers have one serious performance problem to deal with. Compiling C++ code is a long, slow process. Compiling headers included on top of C++ files is a very long, slow process. Compiling the huge header structures that form part of Windows API and other large API libraries is a very, very long, slow … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)