Editing config file in esp idf project

I am not clear about how to change config file of esp idf project.
I am following this link for guidance Espressif 32 — PlatformIO latest documentation
I use this settings in platformio.ini file .

platform = espressif32
board = esp32doit-devkit-v1
framework = espidf
monitor_speed = 115200
build_flags = -DCOMPONENT_EMBED_TXTFILES=src/mycert.pem
board_build.partitions = partitions_two_ota.csv

Is it the right way to add options to config file? How about editing sdkconfig.h file?

Yes, you can edit this file.