I have a Nissan sentra 2013 the car shuts down when I start it unless I step on the gas it won't turned off n it turned on the check engine light

first, get it scanned, auto zones do that free. Then e mail the code here for analysis. Also, look for vacuum leaks and try this cleaning video https://www.youtube.com/watch?v=NWCKvU2FmDc