Or, where in the code do you get that a temporary residence permit from any Schengen country allows you to go to any Schengen country visa free?
Dear Porsche, any Schengen residence permits gives access to the entire Schengen area (for short stays up to 90 days), acting as a visa.
Travel documents for non-EU nationals
Passport/Visa requirements
If you are a non-EU national wishing to visit or travel within the EU, you will need a passport: valid for at least 3 months after the date you intend to leave the EU country you are visiting,
which was issued within the previous 10 years,
And possibly a visa. Apply for a visa from the consulate or embassy of the country you are visiting. If your visa is from a "Schengen area" country, it automatically allows you to travel to the other Schengen countries as well. If you have a valid residence permit from one of those Schengen countries, it is equivalent to a visa. You may need a national visa to visit non-Schengen countries.
Source: europa.eu/youreurope/citizens/travel/entry-exit/non-eu-nationals/index_en.htm
This should also be covered in the Visa Code (not very clear I say), and the Handbook for borderguards. The handbook for embassies says:
Page 13
8.DOCUMENTS THAT ALLOW ENTRY AND/OR STAY IN THE TERRITORY OF THE MEMBERSTATES AND THAT ARE NOT COVERED BY THE VISA CODE AND THE
HANDBOOK
– National long-stay visas
The procedures and conditions for issuingnational long-stay visas (for intended stays of more than 3 months) are covered by national legislation, although holders of a national long-stay visa have the right to circulate within the territory of the Member States in accordance with Regulation (EC) No (EU)265/2010 of 25 March 2010 amending the Convention Implementing the Schengen Agreement and Regulation (EC) No 562/2006 (the Schengen Borders Code).as regards movement of persons with a long-stay visa
– Residence permits
The procedures and conditions for issuing residence permits are covered by national legislation, although according to the principle of equivalence between short stay-visas and
residence permits, holders of a residence permit issued by a Member State and holders of a valid travel document may circulate for up to three months within the territories of the Member States.
Source: ec.europa.eu/dgs/home-affairs/what-we-do/policies/borders-and-visas/visa-policy/docs/20140709_visa_code_handbook_consolidated_en.pdf
Usually people are informed by the issueing authority of a regular residence permit (regardless for how long it's issued: 1 year, 5 , indefinate, permanent) issued by a Schengen member that it allows you to visit other member states for up to 3 months.
Wouldn't make much sense if it was any different: being an immigrant residing in one Schengen state for 1 or several years and bot being allowed to cross into a neighbouring memberstate while Schengen short stay visa holders can?

Specific types of residence cards, known as a Residence Card for family members of EU/EEA nationals (who use or have used the Freedom of Movement rights by Directive 2004/38/EC) even give visa free access to all EU and EEA member states. Such a residence card must explicitly state that the holder is a family member of an EU/EEA national.See: europa.eu/youreurope/citizens/travel/entry-exit/non-eu-family/index_en.htm or read through articles 1-10 of the directive. Found here: eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32004L0038