Css code folding doesn't seem to be there any more Aptana Studio 3, build: 3.0.2.201106082310.
I have checked the preferences under 'Aptana', 'Editors', 'CSS' and 'Enable Folding' has a tick in it.
Folding works fine for JS but seems to have dissappeared under CSS, intellisense still works fine.
I used to get a little '-' or a '+' symbol in the left column alongside the line number.
Anybody else found this problem, its a great tool and would like to be able to use it again.
It's definitely still available, as I can see it in 3.0.2 or 3.0.3.
It might be that your code has a parse error or some similar problem that's causing the ticks not to show, though that would be odd if it happens to all files.
If it is a single file, I would file a bug here. Otherwise, you might check Help > Studio > View Log File to see if there are any error messages, or try updating to the latest beta version, 3.0.3 (docs on the wiki)
Related
So I was using Aptana Studio before, and now I switched to Atom.
And I got used to Aptana's errors and warnings highlighting.
For example if I forgot ; after declaration of a varible, or wrong brackets and etc...
In Atom I don't see any errors/warnings highlighting at all. Is it even possible to enable it in stock Atom, or should I download any additional packages?
P.S. I'm working with JS/JQuery/Node/PHP/HTML
Ok, looks like Linter does the job: https://atom.io/packages/linter
Each time I edit a css file in Eclipse, I get this error. It really keeps me from doing my work, because it pops up almost after each character.
Can't find resource for bundle java.util.PropertyResourceBundle, key css2.stylesheet-def.description
I would like to disable the parsing for css in order to not get this error anymore, but I didn't find how. Can you give me any tip on how to solve this issue ?
This sounds like Eclipse bug 419986 which says it because of missing translations in the CSS property files.
The bug report suggests deleting the localization plugin (such as org.eclipse.wst.css.core.nl_fr_4.3.0.jar works around the problem).
Some strange issue appeared while working in Visual Studio 2010.
Formatting for whole CSS file works fine CTRL+K,CTRL+D, but trying to format code inside of selection CTRL+K,CTRL+F shows an error:
The key combination (CTRL+K, CTRL+F) is bound to command (Format Selection) which is not currently available.
Does anybody know what causes this behaviour?
When trying the second command, were you still formatting CSS or a different file type (.cs)?
Code which requires compiling can't be edited whilst running (debugging). HTML, CSS and Javascript can be edited whilst the code is currently running.
Not sure if that is the cause of your issue but that is how I can reproduce it.
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.
I use Visual Studio as my editor for .css and .js files.. It REALLY SUCKS especially with .js files since it insists on indenting them in a very weird way, but I find it convenient that the first alt-tab is always the browser instead of another editor, and that ctrl-tab is always either the code file or the css/js.
Anyways, in all its radiant wisdom it decides to check them for syntax errors as well and every time I compile my project it gives several "errors" that push down the real errors of the compilation, so every time I make a syntax error in a code file I have to scroll down through all the js/css errors to see what's wrong.
Examples of such errors (that aren't really errors) are:
Error 7 Validation (CSS 2.1): 'text-rendering' is not a known CSS property name.
Error 8 Validation (CSS 2.1): 'opacity' is not a known CSS property name.
The situation also got much worse recently, since it now keeps parsing a .js file as a .css file for some reason, so I get errors such as:
Error 1 Unexpected character sequence. Expected a selector for the style rule. E:\Dev\anacletus\Static\set_focus.js 2
Error 2 Unexpected character sequence. Expected a property name for the " : " declaration. E:\Dev\anacletus\Static\set_focus.js 3
Error 3 Validation (CSS 2.1): 'set-focus' is not a known CSS property name. E:\Dev\anacletus\Static\set_focus.js 3
I even deleted that particular file from the solution (it's not there anymore anywhere), but it keeps parsing it anyway.
In short, how can I disable this feature?
Enter the options through
Tools > Options
If it isn't checked, check the "Show all settings" box at the bottom of that window.
In the tree to the left, choose:
Text Editor > CSS > CSS Specific
Uncheck "Detect Errors". Then, choose:
Text Editor > JScript > Miscellaneous
Uncheck "Show syntax errors".
You can also change how it indents each type of code too, in the various settings in those "Text Editor" sub-options.
I know, this question is old, but I have an update (for Visual Studio 2010):
The accepted solution has a big disadvantage: It disables all syntax checking of CSS and JScript.
If you still want to have meaningful warnings, you can do the following workaround.
It will treat errors as warnings, and it will do css validation on css V3.0 level rather than on (old) css V2.1:
Close Visual Studio
Download and install the web standards package for Visual Studio 2010 SP 1
Open the path (on 32 bit machines, it is Program Files)
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\1033\schemas\CSS
Backup CSS21.xml for safety reasons
Overwrite CSS21.xml by the file CSS30.xml (in the same directory)
Open Visual Studio. In Text Editor settings, (re-)enable "Show syntax errors". Ensure you have checked "as warnings" too.
From now on syntax checking of CSS is done on 3.0 level (although it appears in Visual Studio now as 2.1), and you're getting warnings instead of errors if the syntax checker finds anything.
(Note that the Style Sheet toolbar only allows to enable CSS 3.0 checking for css files, not for HTML. Hence, this fix is needed if you want to keep syntax checking)