I’m wondering if it’s possible to use the RX or TX line as a 5v digital input/output line.
Because i need more space on my uno board.
Also if its possible, should i write a specific code ?
And finaly, is it possible to use them as digital input/output for all the arduino's ?
The RX and TX pins are used for uploading sketches to your board and for communication with the computer via Serial. If you connect anything to those pins, it can interfere with that functionality. For that reason, it's best to leave those pins alone. That said, it is possible to use them for other purposes.
Are you aware that you can use the analog pins on the Uno as digital pins also?