From the landscape view of FamilySearch Family Tree, or on a person's details page, click the ID. Now you can paste the ID in another place.
Note: The instructions above are for the new pedigree view. In the old view: From the landscape view of FamilySearch Family Tree, or on a person's details page, click the ID. Click Copy ID. Now you can paste the ID in another place.