C
C#•3y ago
surwren

What does 'Intellisense' refer to?

Is intellisense solely responsible for all feedback that you receive in the IDE? Or do other parts of the IDE (say the compiler for example) detect errors? I thought of this question because I was having a conversation and referred to the following as being controlled by intellisense: 1. Code autocompletion (like if you type
for (int
for (int
then it will automatically suggest
for (int i=0;i<range.Length;i++){}
for (int i=0;i<range.Length;i++){}
) 2. Error warnings/detection (the squiggly red/green lines under your variables, like say for example
Largestidx
Largestidx
but you get a red squiggly line because it doesn't exist in the context (you didn't define it), or because it's used in a way where it should be a nullable and you didn't use int? over int (which produces the green squiggly)) I'm not sure if I was mistaken, like whether intellisense is only in charge of 1) and not 2), or vice versa, or both. In fact I'm curious as to what scope of activities intellisense controls/governs within the IDE. Really sorry if my thoughts are all over the place, do ask for clarification on what I'm referring to specifically if you're confused by this post
35 Replies
333fred
333fred•3y ago
Intellisense covers a few activities: 1. Completion 2. Quick info 3. Method parameter lists It does not cover errors/warnings
surwren
surwrenOP•3y ago
ah, I see so which part of the IDE controls 2. in my post? is it the compiler itself?
333fred
333fred•3y ago
Yes Mostly In C#, we have the roslyn compiler platform, which users can extend with analyzers to give you extra warnings
surwren
surwrenOP•3y ago
Does intellisense/compiler coverage vary by language/IDE?
333fred
333fred•3y ago
Intellisense (the term) is a VS feature name But most languages and IDEs have similar features under different names
surwren
surwrenOP•3y ago
oh intelliJ just calls it code completion huh so they don't group it or do they I'm confused now
333fred
333fred•3y ago
They don't afaik
surwren
surwrenOP•3y ago
What do Method parameter lists refer to?
333fred
333fred•3y ago
When you're typing the arguments to a method, it will show you the method signature
surwren
surwrenOP•3y ago
If you highlight your cursor/caret over -a variable name during debugging, and it shows its value, is it intellisense doing the work or something else? -a method name and press f12 to navigate to the relevant .cs file's location, what systems goven this use case? Is intellisense involved?
333fred
333fred•3y ago
I think you're over-indexing on the word "intellisense" What are you really trying to understand?
surwren
surwrenOP•3y ago
idk, I'm trying to be more precise in my language when I refer to what's helping me in my code in MSVS
333fred
333fred•3y ago
Then don't refer to anything as intellisense 🙂
surwren
surwrenOP•3y ago
then it will be a verbose set of sentences to refer to literally just one phenomenon "like when your hover caret over the variable name to see its value"
333fred
333fred•3y ago
No, it will be a sentence that refers to the actual thing you're talking about
surwren
surwrenOP•3y ago
what actually controls this
333fred
333fred•3y ago
The debugger
surwren
surwrenOP•3y ago
"like when you hover cursor over method call and press f12 to navigate to the source method" what actually controls this
333fred
333fred•3y ago
For example: if you report a bug in intellisense, the first question the IDE team will ask you is "what part" Intellisense is too broad a word
surwren
surwrenOP•3y ago
I mean I'm getting confused over whether it even concerns intellisense in the first place lol
mtreit
mtreit•3y ago
Isn't this Intellicode not Intellisense?
333fred
333fred•3y ago
No
surwren
surwrenOP•3y ago
apart from intellisense, debugger and compiler, what other systems play roles in helping MSVS users code like is there a list
333fred
333fred•3y ago
Or: maybe
surwren
surwrenOP•3y ago
so I can go into microsoft docs and read
333fred
333fred•3y ago
No
surwren
surwrenOP•3y ago
wat so how do I know which is in charge of what
333fred
333fred•3y ago
You don't care
surwren
surwrenOP•3y ago
is this part of the whole encapsulation thing user no need know 😳
333fred
333fred•3y ago
The user doesn't need to know 🙂
surwren
surwrenOP•3y ago
encapsulation in IDE
mtreit
mtreit•3y ago
If the IDE is suggesting a for loop implementation I think that's Intellicode
surwren
surwrenOP•3y ago
but how could you tell ): 😭 i'm curious men actually kinda really wanna know
mtreit
mtreit•3y ago
Because it's suggesting an implementation not just showing possible parameters and the like

Did you find this page helpful?