My manuscript uses \begin{figure}...\end{figure} to both images and code fragments.
However, I want that code fragments are titled "Code 1. ..." and not "Figure 1. ...", while the pictures are still titled "Figure 1. ...".
What I can find is only how to change figure titles for the whole document.