Was the Visual C++ STL human-generated or code-generated?

Two things: The indentation is actually fine, although nowadays unusual (and I personally hate it): they use an indentation of four, which is achieved via spaces, but use tabs for all multiples of eight. This used to be the standard almost everywhere (notably it’s still the default setting in several editors such as Vim). But … Read more

‘Format code’ and ‘sort using’ on save in Visual Studio 2022

Starting from VS2022-Preview2, there is no need to additional extension to “format on-save”, you just run a customized code cleanup that contains “Format document” action on-save: Customize your cleanup profile to perform “Format document” action (if not already there), in Analyze > Code Cleanup > Configure Code Cleanup Enable “Run code cleanup profile on save” … Read more

How to add config transformations for a custom config file in Visual Studio?

Visual Studio transforms only web.config files by default. If you need custom config file with transformation for DEV, UAT, PROD, etc environments, then try to Use custom extensions for Visual Studio like SlowCheetah – XML Transforms for Config transformation preview functionality. Add for the project from Nuget SlowCheetah to provide build in transformation. A little … Read more

Multiple Startup projects in Solution, in Rider

In the run config drop down, select “Edit Configuration…” At the top of the left hand menu, click “+” Find and select “Compound” Name it Use the “+” button to add the projects you’d like to start together Select that configuration when you run it Edit the confuration: Find and select the Compound configuration: Add … Read more

How to set Visual Studio Filters for nested sub directory using cmake

There are several ready to use or adaptable solutions out there to mimic a Source Tree behavior like in Eclipse with CMake for Visual Studio (e.g. ADD_SRC_SUBFOLDER DESTINATION_SRCS from Zobra or GroupSources from Luca). Here is my reduced version for your use case: cmake_minimum_required(VERSION 2.8.10) project(Main CXX) set( source_list “File.cpp” “File.hpp” “Dir/File1.cpp” “Dir/File1.hpp” “Dir/File2.cpp” “Dir/File2.hpp” … Read more

Visual Studio 2017 fails to install offline with “Unable to download installation files”

It worked!! All I had to do was install the certificates into the root CA! Something I missed noticing in the VS 2017 docs: How to install from the offline installation folder Install the certificates (They are in the “certificates” folder, which is in your Layout folder. ) Simply right-click each one and choose Install … Read more

How to get rid of “The solution you are trying to open is bound to source control” message

You need to clean the solution file (.sln) by removing the following GlobalSection: GlobalSection(TeamFoundationVersionControl) = preSolution SccNumberOfProjects = 2 SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C} SccTeamFoundationServer = http://example.com/tfs/defaultcollection SccLocalPath0 = . /// — more solution specific stuff omitted — /// EndGlobalSection and you need to remove the source control references from every single project file (.csproj for C# … Read more

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