I've had the chance to work with medical students on general medicine wards, neurology wards, and the psychiatry inpatient unit. A lot of great stuff has been covered (
@mimelim's post in particular is excellent) but I will rehash a few things that I've noticed that tend to set great students apart from good students. Note that while at my institution residents do not actually evaluate medical students, more times than not the attending will ask for our input on students. I have no idea to what degree they utilize that input, but just recognize that even if all of your evaluations are done by attendings, your residents may still get an indirect say in your ultimate grade. Read: don't be two-faced just because you think residents aren't evaluating you.
First, the most important things are basic, welcome-to-the-real-world stuff: show up every day, be on time, do not disappear, and do what you're told. Sometimes you may be asked to do "scut" - please understand that this work, despite the pejorative name, is extremely important to the functioning of the team. We residents have about a million things we need to do on a busy service, and unfortunately you, as a medical student, can't do much of it. The few things that you
can do are immensely helpful. If one of your residents asks you to do something, do your best to figure out how to do it and get it done quickly. If you don't know how to do it, then let them know and ask for instructions. What I don't like it when I ask a student to do something and a couple of hours later it hasn't been done because they "didn't know what to do." I assure you that if you're able to do these things that may seem unimportant, you will be in the good graces of your team.
Be interested in what's going on. The reality is that you are very likely not going into whatever rotation you're doing at any one time. Unless you're pathologically crazy most people will not expect that you will be going into their field. That's fine. However, you are still expected to complete the clerkship and do your absolute best in the process. If I have a medical student going into [not this rotation], then I will do my best to tailor teaching and patients such that they will hopefully be interesting or useful to their future work, but not having an interest in a specialty is not a free pass to coast through the rotation. You don't need to be super goodie goodie and chomping at the bit to do every little thing ever, but approach the rotation as if you have something to learn or take away from the experience (protip: you do). It's a subtle but important shift in attitude that I can very easily pick up on, and it generally leaves a bad taste in my mouth when a student couldn't care less about what's going on. Even if the student does well, that attitude will ding my impression of them.
You should know your patients extremely well. If I'm covering 3-4 times as many patients as you, it looks bad if you don't understand what is generally going on with a patient and I have to answer all the questions on rounds about your patients. Sometimes there are things you will be out of the loop on - you can't help that. Your resident should do their best to update you with things that change, but again, we're busy and sometimes that goes by the wayside. However, you should know the results of recent tests/labs/other procedures, know what's planned for the day, and know what happened overnight at a minimum. This requires doing a quick perusal of the notes since the last time you saw them. Bonus protip: look at orders to see if the resident has put anything in so that you can talk about those things in your plan.
For presentations, it's ok to give an extremely thorough history and physical exam for the first couple of patients you present to show the attending that you know how to do a complete H&P, but after that, for the love of God, please start to make your presentations concise. Two weeks into a rotation, we don't need to hear every little normal finding on your physical exam. It's not helpful, and it eventually becomes annoying if an attending lets you ramble on as it's a huge waste of time. Figure out how to present things concisely. I was just on a general neuro service, so, for example, instead of listing every cranial nerve and describing what is effectively a normal exam, say something along the lines of "cranial nerves II-XII were tested and unremarkable." Congratulations, you have shortened a 3 minute portion of the presentation to 10 seconds. Again, it's fine to do a thorough presentation initially, but you will have to learn how to become quick and efficient, and you can start by doing that on your rotation. Take cues from your residents and what the attending seems to expect. If no one else is presenting a complete exam, then you probably shouldn't be either.
A general tip when getting new patients: spend time looking up the patient's history in the EMR. For example, if you see someone has a history of "CHF," then I'm going to expect that they've had a TTE (and will want to know what it showed), I will expect that they are on an ACE-I/ARB (and if not, then find out why), and I will want to know what previous interventions, if any, have been done (e.g., angiography, PCI, etc.). Same goes for COPD (want to know PFTs), T2DM (last A1c), and just about any chronic condition. Don't just take what is written in the previous/ER note for granted. You will be surprised that people have diagnoses for chronic conditions yet have never had any sort of diagnostic testing done in the past to support the diagnosis. You need to prove to yourself that they have these conditions. This will also make you look like a stud when you look up this information in addition to being helpful for, you know, treating the patient.
Whether you like it or not, your likeability as a student does play a role in our impressions of you. Someone that is enjoyable to be around in addition to doing all of the above is going to leave a better impression than someone who does well but is unpleasant to be around. That's just how it is. Do your best to try not to be annoying, and don't be afraid to be yourself on your rotation. Maybe be a little cautious the first few days to get the social lay of the land, but it's not required that you be a stiff with no personality throughout the whole rotation.
And finally, a general approach on attitude: pretend as if you're the resident taking care of the patient. You won't be able to put in orders, but pre-round on your patients on your own, present patients on your own, write your notes on your own and see how the approach of the resident/attending differs from yours and try and learn from the experience. IMO, that is the best way to learn. Sure, run things by the resident before rounds to make sure you're not thinking up things that are completely goofy, but do the initial intellectual legwork on your own before talking it over with a resident. Simply parroting what the other members of the team said without thinking about what's going on is not going to net you much education. You learn by doing just as much with taking care of patients as with procedures. Do your best to figure things out on your own and then talk with your resident or attending about why their plans differ from yours.
A note for the M4s: if you're doing a sub-I, you should be expecting to work and work hard. You are supposed to be functioning at the level of an intern. Yes, I know you're going into emergency medicine and you don't care about inpatient medicine and yes, I know you've already submitted your ROL so you're checked out, but don't be a complete slacker. I had the misfortune of working with a few M4s that were more than useless on their sub-Is because they "didn't care about rotations anymore. Protip: you probably don't want that to be one of the first things you tell me when I meet you.