I'm using Aptana 3. I'm selecting some fragment of code (innerHTML) and I want search for it in files using shortcut Ctrl+H. But then some tooltip is showing, and I have to press 2 key to get search dialog. How turn it off? I want seach dialog just after Ctrl + H.
It's because a javascript ruble command 'Documentation for Word' is bound to Ctrl+H and so is the Eclipse 'Open Search Dialog'. You can try changing one of the two bindings:
For Open Search Dialog, go to Preferences > General > Keys and change the binding.
For the ruble command, you'd need to pull down a copy of the bundle and edit the command's binding. Commands > Javascript > Edit this Bundle, then open commands/documentation_for_word.rb and edit it.
There are a number of key bindings Aptana 3 users don't have control over in our preferences gui. One other is 'Delete Line' command mapped to ctrl+shift+k. i truly wish the Aptana folks would fix this key mapping issue.
And if editing the command file does not help, here's what worked for me with Aptana Studio 3.0.1.201104291443:
Download the bundle with "Edit this bundle"
Chuck it out of the workspace (aka delete project)
Quit Aptana
Fix the problematic commands/...rb in some editor
Restart Aptana, retry the command and rejoice:-)
Related
I have a babel text highlighting that i added in my sublime. However every time I open a new react project it defaults to javascript text highlighting then i have to reset each javascript file to get the correct text highlighting. As you can see in the lower right of my screenshot it is by default set to javascript.
The syntax that Sublime selects is based primarily on the extension that the file has.
You can select View > Syntax > Open all with current extension as... from the menu while you have such a file open to tell Sublime what syntax you want it to use for any particular extension.
If you sometimes use regular JavaScript as well, you'll experience your current problem in reverse; you will have to manually swap the syntax back to JavaScript.
Either way, the Project Specific Syntax Settings package may also be useful in this case if you use projects. It will allow you to configure per project what you want the syntax for different files to be.
What I did was to make babel(JavaScript) the default, preventing the default JavaScript by adding it as a value to ignored_packages.
To do this, open your sublime, click on Preferences > settings then paste this in:
"ignored_packages":["JavaScript"]
More details here: https://github.com/babel/babel-sublime
i am using sublime text 3 as my code editor,i have written a basic hello world example in React.but the coloring is improper on the code ,i have tried installing Babel plugin but even after that also the coloring doesn't seem to work ,as you can see the image below
Just installing it isn't enough, you have to also tell SublimeText to use it.
Either do
a) Ctrl-Shift-P, type "Babel" and select Set Syntax: Javascript(Babel)
or
b) Go to the menu and do View->Syntax->Open all with current extension as...->Babel->Javascript(Babel).
You could follow the below mentioned steps:-
Setting babel as the default syntax
To set it as the default syntax for a particular extension:
Open a file with that extension,
Select View from the menu,
Then Syntax -> Open all with current extension as... -> Babel -> JavaScript (Babel).
Repeat this for each extension (e.g.: .js and .jsx).
Setting a Color Scheme
Babel comes bundled with Next and Monokai from Benvie/JavaScriptNext.tmLanguage. Select one from Preferences -> Color Scheme -> Babel
Courtesy: https://github.com/babel/babel-sublime
This might possibly help you out...follow below steps
press Ctrl + Shift + P
Doing so, Command Palette pops up and there type : Package control . And then
select the option Package Control: install package
Now typein and select 'Babel'
Now open 'View' menu and Navigate to Syntax, Open all with current extension
as…, Babel, Javascript (Babel).
I'm using Tern IDE 0.9 for Javascript on Eclipse 4.4 in windows.
When pressing on a function with CTRL + Click, instead of going to definition it opens a window and asks me if i want to choose
Open an editor on the selected
Tern - go to definition
When choosing the second option, it doesn't do anything.
On a clean Eclipse without any plugins except the Tern IDE, it works.
Can anyone assist?
You have two commands both bound to the Ctrl+Click key stroke.
Open the Preferences and look in 'General > Keys' for the clashing commands. You can click on the 'Binding' column to sort by the binding which should help to find the clash.
Change one of the clashing bindings to something else to remove the issue.
I'm switching from eclipse with Aptana plugin to netbeans 7.1.
Is it possible to mark TODO in error line on the right with a blue dot as in eclipse?
In Netbean you can't do that anymore, the only way to retrieve your tasks is to use the Tasks Window. Maybe you can look for a plugin to add marks in left/right margins.
Let me know if you found one up to date, I've made some search but found nothing.
You can, but it differs a bit in implementation from Eclipse.
(tested in Netbeans 8) click Window > Action Items, a log console should appear, then go to Tools > Options > Teams > ToDo patterns, and add or change your TODO mark pattern.
once done, you can view TODO's (or any other thing you've marked) on the Action Items console.
To work with JS files in Visual Studio 2008, I did:
Tools -> Options -> Text Editor -> File Extensions
and added js extension with Script editing experience.
That works pretty much as expected apart from the following things:
Syntax highlighting is set-up extremely slow (after 10 seconds or so) when I open the JS file. The compiling warnings are generated equally slow and they disappear slowly when fixed. Generally, not a big deal, but I wonder why. Until the file is syn highlighted, you can't put in breakpoints.
Intelisense works, but not always. For instance, if I use getElementById to get the element, intelisense with that element doesn't work. I guess it has to do with context, as the compiler can't determine what kind of object is in question. It also doesn't work inside an html page using the script tag, but in this case syn highlighting is immediate.
If there is any better approach?
I am currently opting to use an external editor and to launch it by adding a custom "open with" action on js file. However, I don't like doing this because I can't use the fantastic VS debugging capabilities...
The 3rd party addin Visual Assist X can help with js.