How do I set ide 2.0?

I want to start IDE 2.0 with sketch that I double click(It opens with old sketch whatever sketch I try). How do I set IDE ?

Hi @bogdan546. There is no support for file associations in Arduino IDE 2.x at the moment. This deficiency is being tracked here:

(the reporting user was on macOS, but it also affects other operating systems)
There is a proposed fix, but it has not yet been accepted. If you are up to compiling the IDE from source, you could try applying the patch to see how it works:

Thanks , I returned to IDE 1.8.15