Is it possible to hide the objects that are outside of the artboard?
As you can see in the picture below, the polygons are shown outside of the artboard.
I want to hide everything that is outside of the artboard.
I usually just create a rectangle with no fill and the heaviest stroke possible (1000pt). Then align the stroke to outside. Then I change the line colour to match the grey background. Set this as the top layer and you can easily toggle it on and off, or lock the layer and simply work around it. Way easier than messing around with clipping masks.
Using a clipping mask is one option, but can be annoying if you want to keep the mask while you are working with the ability to turn it on and off.
This may not be the best option but is what I sometimes do.
You can then lock the overlay layer and show or hide the layer whenever you like. Just remember to keep that layer above all the other layers.
This is a super easy workaround that I've used quite a bit if you want to view what it will look like on the page. I originally learned about it on this group somewhere, but cannot find the original post.
Open the Navigator panel (Window > Navigator) and make the window as big as you like. It will show what the document will look like without the pasteboard.
Go to: View > Trim View Can toggle on and off through menu, or create your own keystroke shortcut.
I did an Action.
1- Before record the action, set Fill and Stroke color to none (transparent).
2- Make a frame using the rectangle tool anywhere.
3- Create a new action.
4- In the dialog I named it "Stroke Artboard" and set Shift F6 (on Mac) as shortcut.
5- Open stroke color panel and set #5d5d5d (dark gray frame background color), click OK.
6- Set stroke weight to 1000pt and Align Stroke to outside.
7- Stop record. Done.
Every time you need, make the rectangle first and run the action.
To hide all items over an item in a layer, choose the product and also select Things > Conceal > All Artwork Over. To hide all unselected layers, pick Conceal Others from the Layers panel food choice, or Alt‑click (Windows) or Option‑click (Mac OS) the eye symbol for the layer you intend to expose.
You can simply go into presentation mode via Shift+F to view only what's inside of the artboard.