How to change C++ Language Standard in JetBrains Rider

Table of contents

Problem

As a new Rider user, I encountered this error after starting my new C++ project, because the IDE Language Standard for C++ by default is C++14.

0>ConsoleApplication1.cpp(6,23): Error C7525 : inline variables require at least '/std:c++17'

I struggled to find the exact place to change the language standard in my C++ project, so I would like to share how to do it.

Solution

  1. Right-click on your project folder, then choose Properties.

  1. Find the C/C++ tab.

  1. Scroll down, look for C++ Language Standard then you can choose the standard you want.

Note: is possible that you have to change it in multiple configurations, depending on what you use.

Enjoy!