"Hard encoding" the PORT in Arduino IDE

Hello,

almost every time that I want to upload the sketch I have to select the Arduino uno... how to avoid this?

How to set that Arduino Uno as my default port?

Is it possible to define the port inside the sketch?

Best.

The Arduino Web Editor does that:
https://create.arduino.cc/editor
The regular IDE doesn't have that feature, though it has been requested multiple times over the years.