where to edit snippets in aptana studio 3
im used to gedit snippets plugin
when i go to command menu < html < conditional command < ie conditonal command
it says not defined
is there a way we can add our own snippets and how to trigger them
Yes. There is a document here on how to create your own snippets:
http://wiki.appcelerator.org/display/tis/Creating+a+new+snippet
Related
After updating VSCODE to the latest version, the editor and the terminal show different indentation. Following figures present the format of the code in the editor and terminal, respectively.
Code in editor
Code in terminal
How can I keep the same indentation?
This problem is triggered by radian's auto-indent and can be solved by adding following code to the profile of radian.
options(radian.auto_indentation = FALSE)
So I am at complete loss here and can not figure out what changed but suddenly my IDE visual studio code on mac OS uses different comment tags for my SASS files when using cmd + /.
In the past it uses // to out comment my code but now it changed to css comment tags: /* */. I really have no clue what changed and why. In the bottom right it still says its a SASS file. Did I change something myself or did something change in visual studio code itself?
In SASS you can comment using either // or /**/. // is used for single line. /* */ is used for multiple lines. Try highlighting multiple lines and pressing ctrl + / vs highlighting a single line.
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.
Im using aptana to code with meteor on windows (it has nice ota SSH/FTP editing which is why I use it). But the <template> tags are a meteor feature so it spits out warnings when using them.
Is there a nicer editor for windows to handle my files with SSH/FTP? Or even better a way to to add <template> to aptana?
The warning is specifically:
Because templates encapsulate all the html, everything gets underlined!
If you go to Window > Preferences > Aptana Studio > Validation you can go through the various validators (HTML Syntax Validator and HTML Tidy Validator are probably the relevant ones for you).
Under HTML Tidy, you can clickdown 'Elements' and change 'Unrecognized elements' from 'Warning' to 'Info' or 'Ignore'.
In the HTML Syntax Validator you can add regular expressions for errors to be ignored like in this question.
Sublime Text 2 is a nice editor for Javascript code.
Although it doesn't come with FTP support by default, but you can configure it using instructions given here.
Hope it helps.
Well, Hi everyone, I'm new here. And I have this doubt about how to create a command shortcut in Aptana like works in textmate. I work with CodeIgniter framework and I saw a video on youtube about the CI, the programmer was using textmate and he create some shortcuts like this: when he wants to create this line of code "$this->load->view('[cursor]'); he just wrote "ciloadview" then the line appears. Is it possible to create shortcuts like that on Aptana 3??
In Studio 3, you can add custom snippet through rubles. You would first need to create your own ruble, and add your custom snippet accordingly. Instructions to create a ruble can be found here: http://wiki.appcelerator.org/display/tis/Creating+a+new+Ruble
And creating a new snippet can be found here: http://wiki.appcelerator.org/display/tis/Creating+a+new+snippet
In your scenario, I would use "ciloadview" as the trigger and "$this->load->view('[cursor]');" would be the expansion.