How to edit CMakePresets.json (nativeToolOptions not recognised)

I am new to CMake presets. I am experimenting with it in Visual Studio 2019 and Visual Studio Code.

I want to add ‘nativeToolOptions’ to a preset but the schema used by these tools seems to disallow it. Maybe I have misunderstood how to use it.

What is the best way to edit the json in a text editor and ensure that the correct schema is used?

I am using CMake 3.20.2 on Windows.

nativeToolOptions is only available in build presets, not configure or test presets. It is present in the reference schema provided by CMake, though I can’t speak for what VS and VSCode are using.

Thanks for your answer. I understand now.