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.
Related
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.
When I am using rubymine, I can open a panel with ctrl+shift+n and enter something like "users/" and it will show me the users folder in the tree view on the left, how can I do the same in Atom editor? I can open files with ctrl + p, but I can't find anything about going to the folder.
It looks like this functionality is currently not available in Atom. Some related information:
You can reveal the currently edited file in the Tree View using the menu entry Packages > Tree View > Reveal Active File or using the assigned keyboard shortcut (on OS X Cmd+Shift+\)
There's a Tree View Filter package, which seems to be similar to what you're looking for.
The Tree View Search Bar package allows to search the tree view's content.
There's an open issue on the Tree View package to add search capabilities, but it has not been implemented yet.
Looks available to me?
tree-view:reveal-active-file
Cmd + |
Try Shortcuts : ctrl \ or cmd \ to open/close the tree view
if still not opening then check your .atom/config.cson
and check disabledPackages and remove tree-view from it.
and restart your atom again.
if still not open then install it again
https://atom.io/packages/tree-view
NOTE : sometimes it happens if you uninstalled Nuclide package
Had a similar issue after I installed the nuclide.
The problem was that the package disables the standard tree view.
Solution:
Go to Atom Preference > Packages
Enable core Package tree-View
To do this select Atom > Preferences. When your settings show up, click on Packages in the left hand column. Search for the installed package, tree-view. Once it comes up, click on Settings and then uncheck the option Hide VCS Ignored Files.
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
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.
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.