This siman rules the laws of dwelling in the sukkah, including eating, sleeping, and use of the sukkah on Sukkot, and serves as the governing halakhic code for the obligation to sleep there.
אוכלים ושותים וישנים בסוכה כל שבעה בין ביום בין בלילה ואין ישנים חוץ לסוכה אפי' שינת עראי אבל מותר לאכול אכילת עראי חוץ לסוכה וכמה אכילת עראי כביצה מפת ומותר לשתות מים ויין ולאכול פירות [ואפי קבע עלייהו] [ד"ע] חוץ לסוכה ומי שיחמיר על עצמו ולא ישתה חוץ לסוכ' אפי' מים הרי זה משובח ותבשיל העשוי מחמשת מינים אם קובע עליו חשוב קבע וצריך סוכה: הגה ומה שנוהגין להקל עכשיו בשינה שאין ישנים בסוכה רק המדקדקין במצות יש אומרים משום צינה דיש צער לישן במקומות הקרים [מרדכי פ' הישן] ולי נראה משום דמצות סוכה איש וביתו איש ואשתו כדרך שהוא דר כל השנה ובמקום שלא יכול לישן עם אשתו שאין לו סוכה מיוחדת פטור וטוב להחמיר ולהיות שם עם אשתו כמו שהוא דר כל השנה אם אפשר להיות לו סוכה מיוחדת: אכילה בסוכה בליל יום טוב הראשון חובה אפי' אכל כזית פת יצא י"ח מכאן ואילך רשות רצה לאכול סעודה סועד בסוכה רצה אינו אוכל כל ז' אלא פירות וקליות חוץ לסוכה אוכל כדין אכילת מצה בפסח: הגה ולא יאכל בלילה הראשונה עד שיהא ודאי לילה [ב"י בשם א"ח] ויאכל קודם חצות לילה [מהרי"ו ומהרי"ל] ולא יאכל ביום מחצות ואילך כדי שיאכל בסוכה לתיאבון [מהרי"ל] דומיא דאכילת מצה:
We eat and drink and sleep in the Sukkah all seven days, both day and night, and we do not sleep outside of the Sukkah, even a very short sleep. But one may eat an insubstantial meal outside of the Sukkah. And how much is an insubstantial meal? Approximately an egg's worth of a loaf of bread. And it is permitted to drink water and wine and eat fruit even if he made it his meal (own opinion) outside of the Sukkah. And he who is stringent upon himself, and will not drink even water outside of the Sukkah, he is praised. And a dish made of the five species [of grain], if he makes it his meal, it considered a proper meal and requires a Sukkah. Rem"a: And nowadays what is practiced to be lenient in the Sukkah, such that only the scrupulously observant sleep in the Sukkah; there are those who say that it is because of the cold, for it is uncomfortable to sleep in the cold places, and it seems to me that this is because the Mitzvah of Sukkah is a man and his household, a man and his wife, and in a place where he cannot sleep with his wife, that he does not have a suitable Sukkah, he is exempt; and it is good to be stringent, and to be there with his wife, just as he resides all year, if he can have a suitable Sukkah. Eating in the Sukkah on the first night, is obligatory. If he ate an olive sized amount of bread, he has fulfilled his obligation. Henceforth it is optional; if he wished to eat a meal, he eats in the Sukkah; if he wishes, he can eat only fruits and nuts outside of the Sukkah all seven days, like the rules of eating Matzah on Pesach. Rem"a: And he should not eat on the first night until it is certainly night (Bet Yosef in the name of the Orchot Chayyim), and he should eat before midnight (Mahar"i Weill and Mahari"l); and he should not eat during the day from noon and onwards, so that he will eat in the Sukkah hungrily (Mahari"l), similar to eating Matzah.