i'm a newbie to Android. I've just taken my first step into this, and i have met this problem. It's not exactly an error, but it makes me feel uncomfortable while coding.
What i'm talking about is a highlight feature in Android Studio, it highlights all the imports, 'MainActivity', variables and methods...
Does anyone know how to turn it off?
Well, it turns out, the answer is on General settings of IDE!
Here, u can choose to customize your highlight features!
After all, i wanna say thank to Marty for ur hint!
Related
I have a slight annoyance, not so much an issue. See, in some VSCode update a while back, apparently a feature was added that automatically un-minimizes functions if they have an error in them. This just creates a minor convenience for me if I have many functions minimized that all collectively contain an error, when I unassign a variable that they all use for example.
I have so far attempted to look around in the settings menu to turn off this feature but no luck. I have also attempted to find an answer online but... no luck.
Any help would be greatly appreciated, thank you so much, you're a life saver!
As in the title, I accidentally turned off the possibility to detect the programming language in VS Code, which is a nice feature.
I am looking for weeks now and I found nothing anywhere to solve this.
Does somebody know where I can turn it back on again?
Thank you!
UPDATE: I solved my own problem. Solution is at end of this post
Original Post:
Intro:
Hi, I had Visual Studio Code (VSCode) installed a long time back for use with Unity but ended up not using it and opted for Visual Studio instead because that was what my Unity course was using.
I am now learning HTML so I now want to use the Visual Studio Code as the editor.
Problem:
When I type out my HTML code, VSCode is not autocompleting any of my code or giving me any suggestions or colour coding the text.
Troubleshooting steps done:
I completely uninstalled Visual Studio Code including the user data folders: .vscode in users and Code in Appdata/Romaning (which were advised on the visual Studio code website uninstall instructions).
I then installed a fresh version. But the same problem persists.
Update: I have learnt that the feature that I have an issue with is called Intellisense. CTRL-SHIFT-R is supposed to refresh this feature module. So did this and I get the message "No refactorings available". So perhaps I am missing a module or plugin that I am supposed to also install?
I'd appreciate someone's help to solve this.
Many thanks.
PS This is my first StackOverflow question, I hope it's not a forehead slapping debut!
UPDATE: SOLUTION
I just solved my own problem...and it's probably a beginner's mistake...
I discovered at the bottom right corner of the editor, this a menu tray. One of these items showed "Plain Text". On clicking it, it showed a list of programming languages. Naturally HTML was one of them and I upon clicking it. The editor Intellisense auto completion, suggestions etc kicked in.
If I may comment, I wonder why this element is somewhat conspicuous. It's not obvious for a beginner to know to click on "Plain Text" at the bottom right corner without scouring the interface or try to find a third party tutorial video. Perhaps, I can give that as a feedback to the developers.
I just solved my own problem...and it's probably a beginner's mistake.
I discovered at the bottom right corner of the editor, this a menu tray. One of these items showed "Plain Text". On clicking it, it showed a list of programming languages. Naturally HTML was one of them and I upon clicking it. The editor Intellisense auto completion, suggestions etc kicked in.
Can Anyone tell me how the code completion(or code assist whatever is preferable) in Eclipse works?? I mean the tricks/algorithms/Data-Structures it is using.. Somewhere I found that "maybe" it uses Trie, but i want a definite answer, Can anyone please answer it??
There are different Token-Scanners who search for known tokens like { and ; to colorize the current viewport-scopes and fill a history. If you press Ctrl+Spc it looks backward and search for occourences in the history.
Imagine:
Ok, so in vs 2013 (update 2) this works fine, no red squiggles or anything. But in the "OtherClass", when writing "im.", i get no auto-complete with suggestions of "MyInterface", as I would expect.
If i write something that does not exist in the namespace, the red squiggles appear. So some kind of intellisense exist.
If I however skip the "import" part and write the whole namespace: "foo.bar.a." I get auto-complete all the way and suggestion of MyInterface at the end.
I would like to use the import syntax to get shorter lines, but if I won't get auto-complete, suggestions, it's not worth it.
Does anyone have a solution for this? Getting the auto-complete while using import i mean.
Thanks!
The interface is auto generated by web essentials from a c# model, if that would help.
Update
Ok, so I found a setting under Tools -> Text Editor -> Typescript -> General
called "Auto list members". It was unchecked so I checked it and it does come up with the suggestion, but, it looks weird.
If you look closely you see that the suggestion is sort of on top of other the suggestions. Even in the second case which worked fine before. It does look like the screen shot Steve Fenton took, with the small white down arrow under the blue thing(an arrow that does not show for me when writing entire namespace in the First case), so I guess he might have this option checked. But it seems for me it does not work as well.
Update 2
Ok so the thief was resharper. Sorry I forgot to mention i used it.
I fixed it by changing to use vs 2013 Auto list members for typescript and shut it off for resharper like so: http://www.cloud-developer.eu/blog/2013/12/03/solved-intellisense-working-typescript-resharper-installed-using-visual-studio-2012/
But i checked "Visual Studio", instead of "Limited ReSharper Intellisense"
It works for me™, which suggests one of the following...
It could be a problem with the language service. This normally resolves when you close and re-open the file or when you restart Visual Studio.
If this isn't the case, it may be a bug in Visual Studio - something is making it mess up. You will almost certainly be asked to uninstall/reinstall before anyone will look at your bug, so do that if you still have a problem and see if it fixes it.
If neither of these help, it will be time to raise a bug for Visual Studio :(
Here is my screen shot of the working code:
Ok, as I stated it seems it was ReSharper intellisense vs Visual Studio 2013 intellisense.
The link under my Update 2 was a fine solution for me before, when I had Resharper 8.1 installed.
But it seems they have improved it and in 8.2 the original issue is fixed. So I have now unchecked the "auto list members" in vs2013 options and only use resharper.
I got the same problem using VS2013 and Resharper 8.2 but this was due to a error on my side in the path to the module I required. So I guess there is a bug that misses the error from my side...