This simple mod allows you to copy and paste lobby codes in-game. Simply press the button shown on screen!

The easiest way to install this is to use the Slime Mod Manager.
If your game isn't modded with BepinEx, DO THAT FIRST!
Simply go to the latest BepinEx release and extract BepinEx_x64_VERSION.zip directly into your game's folder, then run the game once to install BepinEx properly.
Then, go to the latest release of this mod and place the dll into your plugins folder (BepInEx/plugins).
No configuration necessary!
The game now hides lobby codes by default. On most controllers, press the left bumper to copy/paste.