0

I have to learn specifically the cpp17 and we will use that. And I don't have any clue how to set specifically that version.

I was trying to change the c++ settings in tools but I didn't find anything like this.

sujoybyte
  • 584
  • 4
  • 19
AKDA2318
  • 1
  • 1
  • 4
    You change it per project/solution. To do this you should open project properties (right mouse click on the solution tree) and go to: `C/C++ -> Language -> C++ Language Standard` – Raffallo Apr 28 '23 at 12:15
  • I feel like this has to be documented online already. – sweenish Apr 28 '23 at 12:16
  • One you have the settings as you like them, you can create a template for future projects, see: https://stackoverflow.com/questions/61555685/how-to-change-default-code-in-visual-studio/61555785#61555785 – Paul Sanders Apr 28 '23 at 12:29
  • https://learn.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=msvc-170 – Alan Birtles Apr 28 '23 at 13:07
  • Did the answer below work for you? Note : the settings in debug and release are independent. You need to set C++17 for them respectively. – Minxin Yu - MSFT May 03 '23 at 08:44

1 Answers1

1

You can do the following. Go to project property page

enter image description here

After you enter the property page, you should be able to choose standard version in C/C++ -> Language -> C++ Language Standard.

enter image description here

Karen Baghdasaryan
  • 2,407
  • 6
  • 24