I use the Arduino IDE to 'build' everything.
However, in case of a bigger project, I use a 'decent' code editor (Visual Studio in my case) to edit, and the Arduino IDE to build.
Also, because I prefer testing all non-Arduino related code on the PC (not on the Arduino), the Visual Studio (C++) project uses some stub classes I created (specifically for my ...
One way as ansi_lumen mentioned in his answer is to flash ftdi
chip EEPROM to have unique serial number which then could be
identified by UDEV rules.
But turns out it won't work on cheap chinese Arduinos which instead
of FTDI has CH340G chip which doesn't have EEPROM to store
unique ID (CH340B should work).
This answer suggests to write UDEV rule ...