Create the circuit you want to convert into a module. Make sure you follow some of these Module Design Best Practices to get the most out of your design.
Simply drag the terminals from the library into the schematic editor. You can think of terminals as the inputs and outputs of your module. This means they should be connected to the nets or parts where you expect to connect other components when the module is used.”
Source