How to copy paste code with colors and format Cntrl+I in university edition?Everytime I pasted the code, I seem to lose the color. Also what's the short cut to format the code like an equivalent to Cntrl+I in Enterprise guide. Any ideas please?
The "format code" button can make a program easier to read.
In the screen shot below, I typed a bunch of SAS statements. While you can write programs this way, it can be difficult for others to read them and understand them quickly.
After I press that "format code" button, the program looks like the screen shot below. Statements are placed on separate lines, some statements are automatically indented, and blank lines are inserted between PROCs, data steps, and comments.
Hi I'm not sure how useful this will be to you since this post like a few years old but hopefully it helps someone else.
There's a button to copy the SAS Studio code shown in screenshot (where cursor is) and when copied and pasted that way, the color remains.
Thank you so much! I was copying code into Google Docs and worrying how much time it would take to format the colors. All I had to do was highlight my code, click the Copy Code button in SAS Studio and paste regularly (Ctrl+V or Cmd+V). Hope this helps others with lots to format!
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.