A grass trimmer comprises: a trimmer head (2), comprising a head housing (212), a spool (211) and a main motor (1). The main motor (1) is associated with the spool (211) operatively to drive the spool (211) to cut vegetation in a grass trimming mode and to carry out a line feeding operation in a line feeding mode. A switching mechanism (4) comprises a switching device (42) in association with any one of the head housing (212) and the spool (211) for driving the head housing (212) and the spool (211) to engage with or disengage from each other. When the grass trimmer receives a trimming signal, the switching device (42) is driven to drive the trimmer head (2) to enter the grass trimming mode in which the head housing (212) is engaged with the spool (211). When the grass trimmer receives a line feeding signal, the switching device (42) is driven to drive the trimmer head (2) to enter a line feeding mode in which the head housing (212) is disengaged from the spool (211). The grass trimmer enables an automatic and convenient operation.Un coupe-bordure comprend : une tête de coupe-bordure (2), comprenant un boîtier de tête (212), une bobine (211) et un moteur principal (1). Le moteur principal (1) est associé à la bobine (211) de façon fonctionnelle pour entraîner la bobine (211) afin de couper la végétation en mode coupe-bordure et afin d'effectuer une opération d'alimentation en ligne en mode alimentation en ligne. Un mécanisme de commutation (4) comprend un dispositif de commutation (42) en association avec l'un quelconque du boîtier de tête (212) et de la bobine (211) pour entraîner le boîtier de tête (212) et la bobine (211) pour venir en prise l'un avec l'autre ou se dégager l'un de l'autre. Lorsque le coupe-bordure reçoit un signal de taille, le dispositif de commutation (42) est entraîné pour amener la tête de coupe-bordure (2) à entrer en mode coupe-bordure dans lequel le boîtier de tête (212) est en prise avec la bobine (211). Lorsque le coupe-bordure reçoit un