abra-CAD-abra Posted March 29, 2016 Posted March 29, 2016 Guys, I have recently started using the VLIDE editor and how I wish I started using it earlier! When formatting code in the editor using 'Format Code in Editor', the formatting never looks neat. I am using the default settings in: Tools > Environment Options > Visual Lisp Format Options Is there anything I am missing or should know for better formatting? Cheers, Quote
abra-CAD-abra Posted March 30, 2016 Author Posted March 30, 2016 (edited) Lee, Thank you for your response. That would explain why the formatting of your code is always flawless. I have been playing with the formatting settings in VLIDE for some time but I cannot achieve the desired presentation. I find that if the code is formatted well, it is easier to read and understand. In future, I think that I will use VLIDE for debugging and Notepad++ for formatting. Cheers Lee, Edited March 30, 2016 by abra-CAD-abra Quote
cwake Posted March 30, 2016 Posted March 30, 2016 I find the formatting in the VLIDE is a good start when the code that I have received from elsewhere is very different to how I prefer it. But like you, I find it has limitations. However, the tool I am constantly using in the VLIDE for tidying up my own code is "Indent to current level". I usually apply it as "Select code (or Ctrl A), Ctrl E => Indent to current level". But you can also access it under the "Edit => Extra Commands" menu. Quote
abra-CAD-abra Posted March 30, 2016 Author Posted March 30, 2016 Thanks Clint, I will investigate the 'indent to Current Level' options. Cheers, Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.