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.
Related
I'm upgrading bootstrap 3.3.6 to 3.4.1. First need to first I need to find all the places(HTML elements) that use bootstrap 3.3.6 so I can do my regression testing covering those elements. Is there a way I can find all the bootstrap references?
This is a .net application with razor views
Thanks
You can do it via search text feature in your IDE like CTRL + Shift + F in visual Studio and Rider (assume it set Visual Studio Key-map), Which provides you with tools such :
Preview of codes before navigate to it.
Search a term in specific files (.cs, .cs-html, ...).
Search a term with regular expression.
...
For example assume we need to find all div which is have row class ( my IDE is rider), so all you can do, after open "find in files" popup, is just set simple things like image below:
So I'm new to VS Code... loved it from a preview in a Python tutorial.
I open it and start entering some CSS code I'm working on, yet the editor does not:
Make suggestions or corrections;
Highlight key words;
Seem to care or know that I'm editing a specific language (i.e.: CSS).
How do I tell it that's the language I want it to use?
When creating new files you can press CTRL + k then m or just click the language mode link in the bottom right of VS Code to specify CSS. That should trigger the autocomplete/suggest/syntax highlighting features. By default VS Code will look at the file extension when opening existing files to determine which language to select.
See https://code.visualstudio.com/Docs/languages/overview for more info.
Im using atom.io for some time now and really like it. there is just one thing im missing. I used to use brackets and sublime before and they both had a feature where you could create the basic structure of a html documents by just typing html.
this would just set the html, head and body tag. created the charset meta, title and link to css file.
I create a lot of html files a day so it would be really helpfull if I know the shortcode or the package which supports this!
You're looking for autocomplete-snippets.
Simply type html and press Enter
Here's a terrible GIF to prove it:
There is a nice Plugin, called emmet: https://atom.io/packages/emmet
When you got that, you just have to type ! -> tab in an empty document. You get pretty much the same result as #hatchet GIF.
If you have disabled the autocomplete functionality mentioned in the currently accepted answer, or want more flexibility than that allows, there is a file-templates package:
https://atom.io/packages/file-templates
Here are some basic instructions.
To install the package: edit->preferences->install->file-templates.
To save the template: packages->new template from this file.
To open a new file with that template, just hit ctrl-alt-n and
select it.
Make sure your file has .html added on the end of its name.
Then go back into Atom, type HTML, and press enter. Your boilerplate should appear. Solved my problem instantly!
If we install Emmet package we are not getting the boiler plate code. So I disabled emmet and it is working fine for me.
!tab is the command u seek. But it won't work unless you create a file and save it with the html extension...
So go create a new file in the directory u want, call it index.html and now go type !tab
It should work 100%, if not be sure u have emmet installed.
I'm using Visual Studio Premium 2012 and installed sidewaffle. Working through examples to create a template using the falling video. https://www.youtube.com/watch?v=z33jOo75CH4&list=UUwEinBp3Mx1UuAR52pzRcNw
I cannot see 'Add template Reference (Sidewaffle project)' on the add menu when I right click the project. Do you know how I get this option to show? Thanks.
I couldn't get side waffle to work, I found it over complicated, I used templify instead. http://opensource.endjin.com/templify this works really well for creating a multiple project template.
I'm trying to use Aptana Studio 3 instead of phpEd. But I'd like to have the code coloring like in Dreamweaver. I made these changes in phpEd, but I can't find where to change it in Aptana.
Also, I installed the jquery bundle, but I can't to get it working...
Thanks for your help.
Preferences:Aptana:Themes. Figuring out what keyword corresponds to what display object can be a bit tricky, but it is all there.
There's actually a ticket already filed to add a theme that matches Dreamweaver: https://aptana.lighthouseapp.com/projects/35272/tickets/1508-create-dreamweaver-color-theme
I'm looking at it now, but I'm running into some internal bugs (namely https://aptana.lighthouseapp.com/projects/35272-studio/tickets/2357-scope-selectors-with-portion-prefix-match-arent-matching-properly) that I need to fix before I can finish. In any case it should be in Studio 3.0.2 and hopefully I'll fix it today and it'll be in tomorrow's nightly (here's how to get nightly builds: http://wiki.appcelerator.org/display/tis/Changing+the+Update+Type).
As for editing themes yourself, you can see the current scope at the cursor by doing Commands > Bundle Development > Show Scope. Then use scope selectors that match that sort of scope (we adopt Textmate's scoping/theming rules: http://manual.macromates.com/en/scope_selectors)
Could you finally get your theme?
If you want to create your own theme then first go to: Window->Preferences->Aptana Studio->Themes
To create a new theme just click on the "+" sign next to the themes
list.
To add elements to your new theme right click the text in your
editor and click Commands->Bundle Development->Show scope.
Copy the last section you see to the right of the hint window that
appears.
In the themes elements list click the "+" located at the bottom of
the dialog box (next to "Scope selector")
Give a friendly name to your new element.
Assign foreground/background colors to your new element.
Paste the element's scope in the "Scope selector" input box (make
sure your new element is selected, if not, click on it).
I created a theme for PHP, CSS, HTML, JS and XML editors, similar to the old aptana 2 colors. If you want to get it you can write me to jgarcias.cr at gmail dot com.
Cheers.