I personally prefer arrow funtion than JS named funtion. but that light bulb keep annoying me, it even hide my code sometimes ( yes, it in row 1 of editor ).
All I want is disable it. I tried some setting in settings.json but not found it.
There's currently no way of disabling this specific feature as of v1.71.2
You can however turn suggestions from showing up by adding this to your settings.json:
"editor.lightbulb.enabled": false,
However - it's still accessable through ⌘ + . on Mac OS X or ctrl + . on Windows. It just doesn't show up and block anything.
Related
I'm using JavaScript, which VS Code says is included with IntelliSense. For whatever reason, the quick suggestions don't work. If I start typing, nothing shows up. No suggestions, or anything. I am running a brand new installation, too (VS Code v1.75.1), and it should be working. I'm running a Windows machine. I can get it to work when I press ctrl + space, but I don't want to have to do that every time. I really like being able to hit tab to complete something I can't remember that it recognizes and move on to the next piece of the code. Having to hit ctrl + space first is a pain.
I've checked all the settings I can find, and it should be turned on and it should be working. Oddly, though, there's no "IntelliSense" extension. I tried looking in the available extensions, and it doesn't exist there, either. It's almost like my version of VS Code forgot to install it.
I had the same issue when I recently installed VS Code on a Mac device. I managed to somehow get it to work on there, but I'm not really sure what I did. I think I tried randomly installing extensions until it worked.
At this point, I have tried looking through settings and all my "Editor: Suggestion" settings are turned on. I've tried uninstalling and reinstalling the program. I've tried rebooting my computer multiple times around doing all of these things. I've added a few other extensions, but they don't work with JavaScript, so nothing really happens.
Does anyone have any idea what's going on or how I might figure it out?
After some back and forth, the issue was found to be that the workspace settings had set the "other" field of editor.quickSuggestions to "off", masking the user settings where it was "on". To fix the issue, either remove the "off" specification of the "other" field from the workspace settings, or set it to "on".
Quoting the asker's comment:
It looks like this demo workspace comes with settings. This is something I did not know until you mentioned it. The workspace settings had it turned off, but my user settings had it turned on. Now both have it turned on and it is working.
My question simply is:
I can't show any definition when hover on my specially my javaScript code
even by hovering or pressing ctrl+k or ctrl+space
I tried my ways but I can't reach this point
Installing the Visual Studio IntelliCode extension will fix that.
But even with that installed, since JavaScript is a loosely typed language, things like variables will just show any when you hover over them.
Installing IntelliSense removed this issue for me.
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.
Moving from InDesign to Acrobat now, I need to automate a very simple task. I'll eventually use BridgeTalk to have an InDesign script call Acrobat X and have it do a couple of simple things. To this end I've been reading up on how to script Acrobat. Unfortunately, it does not seem anywhere as simple as scripting InDesign or Illustrator.
For one thing, the ExtendScript Toolkit is now useless since Acrobat has a built-in "Javascript Console". This would be perfectly fine, except that my console seems to be completely broken. Once I launched it (and it was hellacious just trying to figure that out), I type in a simple 3 + 4 in the console and press Command+Enter, as noted in Thom Parker's guide on AcrobatUsers. (I don't have a fancy Mac extended keyboard with a numeric keypad, so I have to use Command+Enter.)
Nothing happens.
I've tried other things, such as selecting the code first, pressing Control+Enter instead, using a different line of code such as console.println("Hello.");, etc. Nothing I do seems to work. What am I doing wrong?
Finally got my question answered over on Adobe's forums. I thought I had tried everything, but it turns out that I had not even tried a simple Shift + Enter. Hard to believe, since I thought I'd tried every possible key combination already, but I cannot deny the facts. Since I only had the small Apple keyboard without the numeric keypad, I suppose this is the only way to get Enter instead of Return from that key. At any rate, the answer is now known!
It seems to be command-return on MacOS 10.13.6 But thanks for the hint above.
I have been using Eclipse for some weeks now and I start getting used to it.
However, one thing really annoys me:
When editing JavaScript (I didn't try any other language yet), the editor window keeps jumping to the start of the document I am editing.
This mostly happens when the code currently contains syntax errors and mostly while / after deleting lines.
Especially constructs like { = and sometimes unterminated strings / comments seem to cause this problem.
When it happens, only the view scrolls to the top of the document - the cursor stays where it was before the "jump" occurred.
Anyone having an idea on how to fix this?
I believe the problem described above is related to this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=318095
The work around is to disable the "Link with Editor" option from the Project Explorer. Which is to say make sure the icon with two arrows facing in opposite directions at the top of the file tree is not enabled. Disabling this option resolved the issue for me.
Looks like a problem with the implementation of the JavaScript editor. Most probably the jump occurs when the JavaScript-Parser is not able to parse your document and throws an exception. You might consider to report a bug to the eclipse project (maybe there is already such a report?).
As a workaround you might consider to adapt your way of typing the code a bit. Try to write the code in a way that does not confuse the parser (for example it might help to immediately close a newly created comment and THEN write the content instead of open the comment, write the content and finally close the commend). Same for strings, blocks ...
I am having the same problem. I had this line of code in my file and I could consistently reproduce the issue:
$.preload(preloadImages
, {
base:assetsUrl+'b/images/',
ext:'.png'
});
I changed it to the following and I no longer have the problem.
$.preload(preloadImages, {
base:assetsUrl+'b/images/',
ext:'.png'
});
I get this Phenomenon, when i'm editing in a Java-Class while still residing in a Debug-Process. The Debugger recognises the Change and reevaluates the Code and jumps back in order to be able to reexecute only the changed Code.
Hii i got solution goto
Window->Preferences->search autosave
and disble it and hit apply and close button.
this worked for me !