"Hard encoding" the PORT in Arduino IDE


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?


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