How to set the maximum number of columns in Aptana Studio 3?

I am using Aptana 3 for web development. I was asked to leave lines of code shorter than 80 columns, for both my .js and html files. I tried setting up the built-in formatter and editor, but all I can do is set a limit for the coloring, while I would like to actually wrap the lines. I would like to know if I can do this easily, in Aptana or using an external formatter. Thanks in advance!

+4
source share
1 answer

You can show the vertical line for any column number you select by going to Window > Preferences > General > Editors > Text Editors and selecting the "Show print border" checkbox. There is a field where you can specify the column number that you would like to look at. However, this does not automatically wrap the text.

I'm not sure if you want to enable text wrapping, as this will not help keep your lines less than 80 columns for anyone who takes your code outside of your environment, and I don’t think you want Aptana to automatically add a refund when you receive 80 columns, as this is likely to destroy your code if you did not pay attention.

You can enable word wrap in Window > Preferences > Aptana Studio > Editors by selecting the Enable Word Wrap check box and restart Aptana. But, as I said, this will not affect your code, so your client will not fulfill any requirements to save code up to 80 columns.

+4
source

All Articles