How do I use tabs instead of spaces in Aptana Studio? - aptana

The tab key is inserting spaces when I'm editing PHP files. How can I insert tabs instead?
I've checked that Preferences > General > Editors > Text Editors > "Insert spaces for tabs" is cleared.
I'm using Aptana Studio 3.0.7 standalone on Windows 7.

The PHP editor can override the global settings. Try:
Preferences > Aptana Studio > Editors > PHP > Indentation
Select Use Tabs for Tab policy

Related

VSIX - Add item to "File" > "New" menu

Is it possible somehow to add a menu item to the "File" > "New" menu of Visual Studio from within a VSIX extension?
There is probably a special GUID that we could use in the .vsct file, but where can we find that please?
You can use Command Explorer extension to find out where to place your command.

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.

How do I get rid of strikethrough?

I am using Eclipse and StatET as my IDE for R. In this version, it adds strikethrough to special characters such as , and <. How do I get rid of this strikethrough?
I have looked in Preferences > StatET > Source Editors and no luck so far.
Eclipse Version: Neon.3 Release (4.6.3)
Build id: 20170314-1500
OS: Mac OSX Seirra
Other add-ons: Eclipse colour theme
I found the strikethrough culprits in Preferences > StatET > Source Editors > R Syntax Highlighting
In the Elements list box, I had to click through every item and weed out the checked "Strikethrough" options as they appeared. Many elements to weed through.

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

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

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.

Resources