It looks like your clang version is 10. To get what C++20 features are currently available use -std=c++20 instead of -std=c++2a. https://clang.llvm.org/cxx_status.html
An IDE is both a blessing and a curse. Great for "one stop" writing/testing/debugging code. Not so great because it has less flexibility for managing through-put compared to command-line compiling. Six one way, half a dozen another.
As a programming hobbyist I never really got used to mashing on code other than via an IDE.
For years I used C++Builder and Delphi, which really insulates the programmer from the bare metal of coding.
I tried -std=c++20, but it didn't work. I got this message:
error: invalid value 'c++20' in '-std=c++20'
note: use 'c++98' or 'c++03' for 'ISO C++ 1998 with amendments' standard
note: use 'gnu++98' or 'gnu++03' for 'ISO C++ 1998 with amendments and GNU
extensions' standard
note: use 'c++11' for 'ISO C++ 2011 with amendments' standard
note: use 'gnu++11' for 'ISO C++ 2011 with amendments and GNU extensions'
standard
note: use 'c++14' for 'ISO C++ 2014 with amendments' standard
note: use 'gnu++14' for 'ISO C++ 2014 with amendments and GNU extensions'
standard
note: use 'c++17' for 'ISO C++ 2017 with amendments' standard
note: use 'gnu++17' for 'ISO C++ 2017 with amendments and GNU extensions'
standard
note: use 'c++2a' for 'Working draft for ISO C++ 2020' standard
note: use 'gnu++2a' for 'Working draft for ISO C++ 2020 with GNU extensions'
standard