Sunday, February 12, 2017

Intellisense in Visual Studio Code not working

I've noticed Visual Studio Code is not showing intellisense though I've done some settings in the editor.

Like someone in this post did few changes to his editor but it didn't worked either.

If you are facing the same problem then the cause is that OmniSharp is not installed with your visual studio code.

I didn't do any editor settings, but when I've opened the Visual Studio Code repeatedly I've noticed that OmniSharp package is installed now.

Once it is installed you'll see references to your method names as "0 references" as you can observe from above screenshot

If it is not installed you will only get basic intellisense support with Visual Studio Code (like if, for, while etc).

I doubt why this won't install as and when C# extension is installed. But after restarting the editor for multiple times I've noticed that OmniSharp is installed and the intellisense is working now.

Friday, September 30, 2016

JavaScript: Avoiding IF ELSE statements

Often time we see a lot of IF ELSE statements in JavaScript, which will be cumbersome and hard to understand. Let's see how we can avoid IF ELSE statements to make our code much cleaner.

Saturday, May 24, 2014

Simple chat application using NodeJS and Socket.IO

Before we start creating a chat application with NodeJS, I'll just give you a brief idea of what NodeJS and Socket.IO is and what is does.

What is NodeJS ?
NodeJS is a platform built for fast, scalable network applications. It is also used for creating real-time applications that interact with data related tasks.

Thursday, May 8, 2014

Resolving an Invalid cast exception in C#

Unable to cast object of type 'xxx.ClassA' to type 'xxx.ClassB'.
Often C# developers get this kind of exception at runtime due to invalid cast operation. There are two ways of casting an object to a different type of object.

Sunday, April 20, 2014

Losing precision after multiplication in SQL Server

Yesterday I was doing a little multiplication operation in SQL SERVER. The computation involves multiplication of two decimal numbers. A point to note here is that I've to be very careful while performing the calculations because it's a monetary thing. So, Whatever the calculation made, it must be very accurate such that I shouldn't miss any fractions as it costs in MILLIONS.
The scenario is that I've two numbers, after multiplying each other I'm losing the precision of the values. I've tried to check my database for any faulty data that caused the issue. But the data is absolutely fine.