How to code a 2 Axis System

Hi, new to coding, i am building a 2 axis system using a arduino and a motor shield to control 2 stepper motors. How to I code this and set limits for it (end stop switches?). The system is basically a printer.
Thanks in advance.

new to coding, i am building a 2 axis system using a arduino and a motor shield

Why is it that many beginners new to coding expect to be able to code something very complex?
I suggest you go through the example files in the IDE and understand what they do and how to change them before you embark on anything as complex and incompletely explained as this?

And by all means: start with a single axis (left/right). Make that work first, much easier.

A motor shield is likely to be a poor choice for controlling stepper motors.

These links may be of interest
Stepper Motor Basics
Simple Stepper Code

…R