oleg-shilo / cs-script.vscode

VSCode extension for CS-Script
MIT License
37 stars 7 forks source link

How to get intellisense to work? #3

Closed rconde01 closed 6 years ago

rconde01 commented 6 years ago

I followed the directions with no luck.

1) Installed vscode 2) Installed C# extension 3) Installed Mono Debug 4) Installed cs-script

I open my file...no intellisense.

oleg-shilo commented 6 years ago

But did you load the script? Press Ctrl+F7.

rconde01 commented 6 years ago

aha!! Yes that gives me C# intellisense (sorry I missed that)...but i still don't get cs-script intellisense.

oleg-shilo commented 6 years ago

I know it's annoying but OmniSharp does not enable intellisense for an opened file and requires a workspace (folder) to be loaded. That's why you need to 'load' the script. There is no really any technical reason for this and I was able to avoid "must be loaded" constrain in SublimeText. But it's very unlikely VSCode will ever change this. Though almost all the rest of the functionality can work without the workspace being loaded.

The doco says how to enable intellisense:

image

oleg-shilo commented 6 years ago

Start typing in the new line: //css_ it should popup the autocomplete...

rconde01 commented 6 years ago

ah...I didn't realize it needed the _ before matching...cool!! This is really cool!

oleg-shilo commented 6 years ago

Glad we sorted it out. :)