Extendable electrosurgical pencil (400) is adapted to receive an electrode (1) controllable by an electrical signal for performing surgical operations, comprising: a housing that comprises a first housing part (35) and a second housing part (6), and a main housing part (4) between the first housing part (5) and the second housing part (6), a flexible printed circuit (2), switching means (71) on the main housing part (4) of the housing and being adapted to be activated from outside the housing for closing the flexible circuit (2), and the first housing part (35) comprises a receiving means (41) for receiving the electrode (1). The first housing part (35) is adapted to slide inside the main housing part (4) to provide a telescopic extension of the pencil (400), the electrode (1) and the flexible printed circuit (2) following the sliding movement.