Modify the designResolution of the canvas

Modify the designResolution of the canvas,
Can not redraw the screen?

The changed value is not applied.

Project > Project Preview > Default Canvas Setting > Design Resolution

I want to change the canvas to code and apply it.
Depending on the resolution I change it.