How can I stop Aptana collapse all the codes by default? - aptana

After upgraded aptana to 3.6 on mac, I meet a weird problem. That is: every time I open a new file, it shows correctly - for only 1 second, then it collapse all the codes automatically. This is so annoying so every time I open a new file I need to expand all and then start to coding.
Can someone tell me how to close this auto-collapse-all feature/bug?

That's called code folding, you can disable it from the preferences
It's enabled by default, but can be toggled in the language-specific editor settings.
Go to:
Preferences > Aptana Studio > Editors > [Language: PHP, Ruby, etc.]
In your specific language's editor deselect the 'Enable Folding' option

Related

Change gps behaviour on build target compile file

If I use the GNAT Programming Studio (GPS) to build a single file (Build target Compile file), the editor jumps to the first location in the file with a build warning/error.
It is possible to disable this behaviour using a setting?
Yes. That's apparently an "Advanced" feature, and a bit harder to find than other settings...
Open the Preferences dialog (Edit -> Preferences).
Next to the search preference... box, there's a menu icon. Click on it, and tick off the Show advanced preferences option. An Advanced category has now been added to the list on the left. In there, you will find a Jump to first location option.

Atom Indent Issue

I have a python tensorflow script that used 2 space indent. My Atom preferences have tab set to default: 2. When I hit enter after a : Atom does a 4 space auto-indent, inconsistent with the rest of the file and with the preferences.
In fact, a fresh install comes with the default set like this:
However, if I open a new file and hit the TAB button it tabs 4 spaces. This is bizarre!
I have just started using Atom, so maybe overlooking something obvious, but this is a frustrating problem.
IT turns out there are language-specific preferences that override the general editor preferences. These are accessed via Edit > Preferences > Packages > language-python > Settings which is where the tab length was set to 4.

Expanded formatting is not working in visual studio 2010

My CSS files are displayed in collapsed style. I want to change it to expanded style, but when I change it to expanded style and press okay, it still doesn't work!
Just changing the setting won't change your formatting. You have to reformat the document or select a block and reformat it.
Edit > Advanced > Format Document
If that doesn't work check if the setting is getting reset once you open and close Visual Studio - in this case you might want to try deleting your settings file and trying again (it's in ..\Documents\Visual Studio 2013\Settings\ called CurrentSettings.vsssettings. Note that you will lose all your settings once you do this!
Actually it might be also worthwhile to check if you have update writes to that location before you try that and also try closing Visual Studio, starting it up as an administrator and trying it again.
And if all else fails, one last option is to find a machine where this works and copy the settings file over. Again note that you will lose all your settings once you do this!

Change File Extension Language?

I know in notepad ++ this can be done easy by just using the language menu item then selecting your language.
In Aptana Studio 3 say I am working with a .tpl file from Open Cart. The source is all "greyed" out as it doesn't know its PHP code. How can I tell Aptana Studio 3 its PHP code?
Is this even possible?
Ive been looking for hours and cannot find anything :/
Thanks in advance!
To fix the problem for just this file, you can right click on it in the File Explorer or App Explorer and choose Open with... > PHP Editor (you may have to click Other to get to the PHP Editor option).
To make all .tpl files open in the PHP Editor, go to Window > Preferences > General > Editors > File Associations and add *.tpl file and choose the editor you want it to use.

Aptana Code Folding?

When i try to use code folding in Aptana it doesn't seem to be working i haven't changed any shortcuts and i can`t get it work the default shortcut is Ctrl+Numpad_Divide any suggestions ?
Ctrl+Shift+Numpad_Divide will work ;)
Did you (accidentaly) disable code folding in Aptana?
Check it in Preferences -> General -> Editors -> Structured Text Editors -> Enable folding.
You should check your key bindings, too:
Preferences -> General -> Keys -> Toggle Folding
Do you have another application interfering with your hotkey configuration? Have you installed new programs recently?
I guess the relevant question back is: what file types are you expecting folding on that you aren't getting it for? And what version of Aptana are we talking about: 2.x or 3.x?
We offer folding on Javascript, CSS, Ruby, PHP, XML, HTML across both versions. It would be helpful to know what file you're dealing with, and what code you expect to be able to be folded that isn't offering you that option.
For me it's html. I once had it running, now it's gone again. Never worked well, though.
I don't have a section "Structured Text Editors" (v3.0.6)
Edit: actually, it's php and I now found it here: Window > Preferences > Aptana Studio > Editors > PHP.
I already had it enabled, and eventually found these little blue icons for folding in odd places. Sometimes they work as expected, sometimes they don't. They're only in the top few lines of my document, then no more (stops at line 86 of 864).
First - as far as I can tell it only works with recent versions of Eclipse - i.e. version 4.4+ (Luna).
Second - it's enabled by default, but can be toggled in the language-specific editor settings. Preferences > Aptana Studio > Editors > [Language: PHP, Ruby, etc.]
Third - if there is a syntax error in the code bracketing - e.g. a missing } or end it often breaks all of the code folding in the whole file. This is pretty annoying because in other errors, code folding is useful for finding such errors.

Resources