That would be a nice feature for todays strategy too. I always open up the dev console to get the right id or if there is a toc inserted click and jump to the heading and copy it from the adress bar.
In principle the ids for headings are guessable more or less. Headings in a language with Umlauts are a hard guess sometimes.