First click on the opening bracket for the function you want to select fully, then press ctrl+shift+p to open vs code setting terminal, search for "select to Bracket", this work's for me every time.