Showing posts with label VisualStudio. Show all posts
Showing posts with label VisualStudio. Show all posts
Friday, July 4, 2014

Scope to this feature in Solution Explorer- Visual Studio

Visual Studio is one of my favourite IDE. I love more and more whenever I’m using it. Recently I have found a very good feature called “Scope to this” so I thought it will be a good idea to write a blog post about it.

This feature comes very handy when you have large solution and you want to work /Concentrate on the only portion of a solution. In solution you can select particular project/folder/file and right click and click on “Scope to this” Menu. It will scope your solution explorer to that particular item.

scope-to-this-visual-studio-solution-explorer

Share:
Saturday, June 21, 2014

Visual Studio 14 CTP virtual machine on Azure

Recently Microsoft has release a CTP version of Visual Studio 14 with ASP.NET VNext application. So I thought I will download and try it. But due to bad internet connection it was not downloading properly. Then I cam across following post about Visual Studio 14 CTP Virtual Machine on Azure.

http://blogs.msdn.com/b/visualstudioalm/archive/2014/06/04/visual-studio-14-ctp-now-available-in-the-virtual-machine-azure-gallery.aspx

So I thought it’s a good idea to spin a virtual machine instead of downloading and installing that which would cost me a day. While on Azure I can set that virtual machine in minutes.

So Following are steps for creating a virtual machine in Azure.

How to Create a Virtual Machine on Microsoft Azure with Visual Studio 14 CTP:


1) Login into your Microsoft Azure Account

2) From dashboard goto virtual machine and select Create Virtual Machine.

Create Virtual Machine

Share:
Wednesday, June 11, 2014

One ASP.NET in Visual studio 2013

This post is part of Visual Studio 2013 features series.
Since first release of ASP.NETMVC 2009, There are lots of type of projects are available for ASP.NET and It’s always been confusion to find all the projects under one hood. So now developer has not to worry about whether I should use Web Forms or ASP.NET MVC and If I need some functionalities of ASP.NET MVC in web forms or anything then how it will work? How we should combine all those different project types?

Now that fuss for developer is over. With Visual Studio 2013 Microsoft has vision called One ASP.NET so when you create a web project there will be a single project in Web Category only.

one asp.net visual studio 2013


Share:
Friday, May 23, 2014

Visual Studio update 2 is here download now!!

10 days ago Microsoft has release Visual Studio 2013 update 2.  This update includes bug fixes as well as new features and customer feedbacks. Following are some new capabilities included in this updates.

Universal Apps:

With this release you now build Universal Apps that can run on Windows 8.1 and Windows phone 8.1 while sharing code and assets through shared projects.

There are two types of app available 1) Blank app as universal Project and Hub application for that. So now if you already developed the windows phone 8.1 app and want to create same app with windows 8.1 then you can do that very easily Add windows 8.1 and same way you can add windows phone 8.1 if you have already developed windows 8.1 via Add windows phone 8.1.

Share:
Thursday, May 8, 2014

Visual Studio 2013, Team Explorer and GitHub


Recently Git version controlling system has gained lots of popularity and more and more developers are using it for software development and version controlling. Microsoft also tied with Git with Visual Studio 2013. So if you use Visual Studio as your primary IDE and then its high time to learn about it. With Visual Studio 2013 team explorer you can easily tied code in your git repository so I thought it will be a good idea to write a blog post about How we can create git repository in local with team explorer in Visual Studio 2013 and publish it to github a well know open source a powerfull code hosting site for the open source projects.

Share:
Tuesday, May 6, 2014

Visual Studio Command Window- A useful but unknown feature

All the Microsoft developers love visual studio as Integrated Development Environment(IDE) because it has build with lots and lots of features and developers are more productive then ever. But still there are lots of feature which are not popular among the developers. Visual studio command window is one of the best feature but still lots of developers are not aware about it. In this post we are going to learn about Visual Studio Command Window feature and we will see how we can increase productivity with this command window.

Command windows enables features of visual studio with commands. You can invoke command window via View-> Other windows –> Command window menu or via just pressing(Shortcut) Ctrl + Alt + A.
Share:
Wednesday, April 30, 2014

Book Review : Reporting with Visual Studio and Crystal Reports

Again Marketing Team of Packt Publication (Jay Raval) has contacted me to review a book called “Reporting with Visual Studio and Crystal Reports” and I always have fun to review books so I said yes to them.  This blog post is all about reviewing a book “Reporting with Visual Studio and Crystal Reports”.

reporting-with-visual-studio-and-crystal-report
Share:
Friday, April 11, 2014

Visual Studio 2013 Cookbook review

The marketing team from Packt Publication has given opportunity to Review Visual Studio 2013 Cookbook. So, this post is all about  reviewing Visual Studio 2013 Cookbook . It’s total 333 pages of long book with full converge of visual studio features.

1966EN _Cover
About Authors:

This book is written by Jeff Martin and Richards Banks both are quite experience person.

Jeff Martin is well known technology enthusiast and has been contributing writes for InfoQ(www.infoq.com) for over two years focusing on Microsoft .NET and related  platforms.  Readers are encouraged to follow @VSDevTips on twitter to receive updates of books and visual studio related stuff.

Richard Banks have more then 20 years of experience in software development. During his career his gone through various role like developer, team lead, project manager,CIO and CTO. He is a professional scrum trainer and runs Sydney ALT.NET user group and spoken at number of Microsoft events. You can find him on his blog http://www.richard-banks.org/

Share:
Thursday, March 20, 2014

Enhanced debugging with DebuggerDisplay in C#

We all need to debug our projects and for that we need to some visualization to see values of debug data C# has a attribute called ‘DebuggerDisplay’ which helps developers to visualize data in the way developer wants .

As per MSDN, DebuggerDisplay attributes allows developers of the type, who specifies and best understands the runtime behaviour of that type, to also specify what that type will look like when it is display in debugger.

How to use DebuggerDisplay attribute:


Display attribute constructor has one argument, a string will displayed in the value column for instances of type. This string will contain {} braces and this text between {} will evaluate as expression. So what we are waiting for lets try it in Visual Studio. I have written following code for that.
using System.Diagnostics;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            var employee =new Employee();
        }
    }

    public class Employee
    {

        [DebuggerDisplay("Id={EmployeeId}")]
        public int EmployeeId = 1;

        [DebuggerDisplay("Name={Name}")]
        public string Name = "Jalpesh Vadgama";
    }
}

Here you can see I have created a class called “Employee” with two variable with DebuggerDisplay Attribute and from main method I have created a object of employee class. Now let’s create debug the code via pressing F5 and see how its works.

DisplayDeubggerAttribute

As you can see its display data as defined in argument. So now you can format your debugger visualizer screen as per your requirement. That’s it. Hope you like it. Stay tuned for more.
Share:
Saturday, February 22, 2014

CodeMaid extension for visual studio

Till now I'm a resharper fan boy and I still love using it. It is a great productivity tool. But it is not free for commercial use. So lots of my friends tell me that they want something open source or free which provide some kind of productivity over normal visual studio things and recently I came across CodeMaid extension of visual studio. It is a great plugin. It's not replacement of resharper but it will surely increase your productivity and make your code clean.

What is CodeMaid?

CodeMaid is an open source Visual Studio extension to cleanup, dig through and simplify our C#, C++, F#, VB, XAML, XML, ASP, HTML, CSS, LESS, JavaScript and TypeScript coding.

You can download that from following link.

http://visualstudiogallery.msdn.microsoft.com/76293c4d-8c16-4f4a-aee6-21f83a571496.

It also got  a separate site for that from where you can see and learn all the features. Following is a link for that.

http://www.codemaid.net/

 Here you can find latest news, feature list and documentation for code maid.

Installing CodeMaid

Installing CodeMaid is really easy download .vsix file from the above link and then double click on that. It will automatically start installing it.. It will ask for list of Visual Studio available like following.

CodeMaid

Once you click on install it will install CodeMaid plugin in Visual Studio.

Features of CodeMaid Extension of Visual Studio:

There are lots of features available with CodeMaid Extension of Visual Studio.

Code Cleaning:

This feature will automatically run on save. It will do following things.
  1. Removed unused using statement and sort them
  2. Add unspecified access modifier.
  3. Add Blank line padding.
  4. Remove blank lines adjacent to braces.
  5. Run Visual Studio formatting
  6. Remove Constructive blank lines.
  7. Remove End of Line white spaces.
  8. Update region tags.
You find more about this at -http://www.codemaid.net/documentation/#cleaning

Code Digging:

Once you install CodeMaid it will add a CodeMaid spade where you can navigate and digg code. Here you can alphabetically sort everything drag and drop members etc.

CodeMaidSpade

There are tons of features available like Joining, Formatting, Collapsing, Configuring, Switching etc. You can find that for the following feature documentation list.

http://www.codemaid.net/documentation/

I have used it for few days and highly recommend it it saves lot of time. Hope you like it. Stay tuned for more.
Share:
Thursday, January 23, 2014

Why continuous integration is your friend?

In this post we are going learn benefits of Continuous Integration in Software Developments. Let’s understand what is continuous integration first and then we will discuss about benefits we are having.

What is Continuous Integration in software development?


As per wikipedia “Continuous integration (CI) is the practice, in software engineering, of merging all developer working copies with a shared mainline several times a day. It was first named and proposed as part of extreme programming (XP). Its main aim is to prevent integration problems, referred to as "integration hell" in early descriptions of XP”.

In simple words, Continuous Integration means whenever any developer from the project team commit/checkin code at that time build will be created with the help of build servers and it will be automatically deployed to a specific location with the help of build server.

There are lots of open source and paid options are available for Continuous Integration like Team Foundation Server, Jenkins, TeamCity etc.

You can found a complete comparision of this tools from the following link.
http://en.wikipedia.org/wiki/Comparison_of_Continuous_Integration_Software

Benefits of Continuous Integration:


Followings are benefits of Continuous Integration and Followings are reason why continuous integration is your friend.

1) Automate everything If you don’t have CI then one of the developers needs to get latest/update code in his/her computer then create a build that will waste lot of time on the developer and ultimately we are going to loose developers productive time for this instead of writing code.

2) It will improve quality of code, Whenever any developers commits the code it will create a build and if build is not successful then it will inform all the users/developers of the using that project/build. So now developers will check quality of code regular because otherwise it will create bad impression of this developer on other stack holders of project.

3) Deployment will very easy. Earlier every time we have to deploy to a particular location manually but here stack holders of project don’t need to worry about the deploying things as it will deploy all the things properly.

4) Your code repository will be up to date every time and you don’t have to worry about it.

5) Save lots of times of developers and increase developers productivity. Take an example suppose there are five developers are working on a software project. One of the developer has committed code and another developer has taken latest version from source control at that he/she is facing problem while compile/building project he will notify the developer who has broke the things. So that developer will check and found that he forgot to commit one of the file. So again he will commit things and notify again to all. This will ultimately a productivity lose.

6) QA/Testing team does not have to wait for deployment. So if developer is committed code it will automatically create build and deploy it on specific location there will not be any dependency of development team to test new features.

That’s it. Looking at above reason I must say Continuous Integration is your best friend and ultimately a productivity booster. Stay tuned for more..
Share:
Sunday, January 5, 2014

Node.js tools for visual studio

In this post we are going to look how we can use node.js application in visual studio with node.js tools for visual studio.

What is Node.js?


As per wikipedia Node.js is a software plateform that is used to built scalable network(specially server side application). Node.js utilizes JavaScript as its scripting language and achieved high throughput via non blocking I/0 and single-threaded event loop.Node.js was created by Ryan Dhal in starting 2009.Its development and maintenance is sponsored by Joyent.

Why we should care about Node.js:


  1. It uses JavaScript most popular language of the web.
  2. Fast. Powered by incredible V8 virtual machine. It makes JavaScript execution really fast.
  3. A Great feet for real-time web application.
  4. It’s scales very easily.

Node.js tools for visual studio:


You can download the Node.Js tools from the following link.

https://nodejstools.codeplex.com/

Here are some quick features of Node.Js tools.
  1. NTVS support editing, intellisense, profiling, NPM, debugging locally and remotely(Windows, MAC, Linux) as well as Azure web sites and Cloud services.
  2. Designed, Developed and Supported by Microsoft Community.
It is available for both Visual Studio 2012 and Visual Studio 2013 both.

Installation of Node.js tools for visual Studio:


It’s very easy to install download the setup and double click setup.exe it will load following screen.

Node-js-visual-studio-tools-installation1

Once you click on install it will load start installing.

Node-js-visual-studio-tools-installation2

After completing installation it will look like following.

Node-js-visual-studio-tools-installation3

Once you are done with installation open visual studio and go to File-> New Project-> JavaScript and you will see node.js template available.

Blank-Node-Js-Application

That’s it. Hope you like it. In next post We are going to create first node.js application with Visual Studio. Stay tuned for more..
Share:
Saturday, December 14, 2013

Creating DJango application with Python in Visual Studio

In previous post I have written about creating a basic python application with visual studio. In this post we are going to learn how we can create a DJango application with Python in Visual Studio with the help of python tools for Visual Studio.

What is DJango?


As per wikipedia, DJango is a free open source web application framework written in python which follow ups model view controller architectural pattern.It is maintained by  DJango Software Foundation an independent non profit organization. Django’s primary goal is to ease the creation of complex, database driven websites. DJango emphasizes reusability and plugability   of component and principle of Don’t repeat your self.

Creating DJango application with Visual Studio :


Let’s create first DJango application with Visual Studio and Python tools for Visual Studio. So to create DJango application with we have to create a new project via File->New Project –> DJango project just like following.

first-django-application-with-python-visual-studio

Once you click ok it will create a DJango project like following.

First-Django-application-solution-exploer-visual-studio

Now it’s time to create our first application. So right click FirstDjango folder and add new DJango App.

First-Django-app-solution-explorer-visual-studio

Now once you click on DJango app it will open a box like below.

Add-DJango-app-web-python-visual-studio

Now its time to install Python Environment to application via right click on python environment in solution explorer and select environment.

Select-Python-DJango-Environment-Visual-Studio

Now once you click OK it will add python environment to application.

python-environment-visual-studio

Now right click python 2.7 and right click it will open up a popup like below.

Install-Python-Package-Visual-Studio

Once you click on Install Python Package it will open up a dialog like following.

Install-DJango-VisualStudio
Once you click OK It will install DJango package in Visual Studio after installing lot of files it may take 5 to 10 minutes.

Installing-Django-Visual-Studio-Sucessfully

It’s done!! run your first application with DJango with f5 and following you see in browser.

Running-DJango-Application-Python-Visual-Studio

Woohoo!! your first python web application ready. Hope you like it. Stay tuned for more..
Share:
Wednesday, December 11, 2013

Creating first python application in Visual Studio

Before some time I have blogged about Python tools in Visual Studio and explained how we install python tools with visual studio and start developing python application with the one of greatest editor in class Visual Studio. In this post we are going to learn how we can create a python application in Visual Studio.

First check whether Python Interpreters are install on your machine or not?


First step for creating python application with Visual Studio is to check whether Python interpreters are installed or not not. To Check this after installing Python tools for Visual Studio go to Tools menu –> Python Environments and it will show a list of python environments available.

Python Enviroments for Visual Studio

If it is not installed, you need to download from http://www.python.org/. I have already installed Python 3.3 so its showing there.

Creating first python application:


Once you install Python tools for visual studio it will also have options to create python application in visual studio. So go to file menu –> new project options->templates-> Select python it will show all the python options available for visual studio just like below.

Visual Studio Python Project Templates

There you have few options like below.
  • From Existing Python Code
  • Python Application
  • Django Project
  • Python MPI Application
  • IronPython Application
  • IronPython WPF application
  • IronPython Silverlight Web page
  • IronPython Windows application
As we need to create a simple application for python we are going to our first application with Python application.Once create project it will create application like following.

Python application in visual studio solution explorer

Now open that PythonApplication1.Py and write following code.

Python Hello World application with Visual Studio

And now run application via pressing f5.

PythonApplicationfromvisualStudioOutput

That’s it we are able to run our first application in Visual Studio. Woohoo!! Hope you like it. Stay tuned for more..
Share:
Sunday, December 8, 2013

Python tools for Visual Studio

Lots of people complaining that Microsoft does not support open source that is a myth about Microsoft it does support there are lots of open source initiative done by Microsoft and Python tools for Visual Studio is one of them.

With the help of this plugin you are able to do work on python on Visual Studio one of best editor in class.

Here is the link from you can download the Python tools for Visual Studio. Python tools are available for Visual Studio 2010,2012 and 2013. You can download the tools according your version.

PythonToolsForVisualStudioCodePlex

Go to download and here you can download Python as per your visual studio version 2010,2012 or 2013.

Pythontoolsfordiffrentvisualstudioversion

Installing Python Tools for Visual Studio :


Installation of Python tools is quite easy. Download the setup files and run exe of for that setup. You will get following screen.

PythonForVisualStudioInstallation1

Accept terms in License Agreement and click on install. There is also advance mode available where you can select different options.

PythonForVisualStudioInstallation2

Once you click install it will start installing python tools.

PythonForVisualStudioInstallation3

Once installation complete it will notify like below.

PythonForVisualStudioInstallation4

Click on finish and Yep you are ready to write code in python for Visual Studio.

Python and Visual Studio :


Now once you open Visual Studio and create a new project it will also Python as new language options.

VisualStudioPythonProject

Here you have various like From Existing Application, Python Application, DJango Project, Python MPI application. You can also see there is IronPython support is also there.

That’s it. You can see its very easy. Hope you like it. Stay tuned for more..
Share:

ASP.NET and Web Tools 2013.1 Tools for Visual Studio 2012

Recently Microsoft has released ASP.NET and Web Tools 2013.1 for visual studio 2012. There are tons of new feature and improvements are there. So Now it’s possible to have all the latest feature on ASP.NET stack on Visual Studio 2012 like ASP.NET MVC 5, ASP.NET Web API 2, Entity Framework 6.0 etc.
You can download this update from the following link.

http://www.asp.net/visual-studio/overview/2012/aspnet-and-web-tools-20131-for-visual-studio-2012

ASP.NET MVC 5:


Once you install this tools, ASP.NET MVC 5 templates are also installed.

ASPNETMVC5VisualStudio2012ProjectTemplate

So now you can use all the ASP.NET MVC 5 feature like One ASP.NET, ASP.NET Identity,Bootstrap MVC template, Authentication Filters,Filter overrides etc.

ASP.NET Web API 2:


ASP.NET Web API2 is also available here.

ASPNETWebAPI2VisualStudio2012ProjectTemplate 

So all ASP.NET Web API2 features like attribute routing, Cross Origin Resource Sharing, OWIN (Open Web Interface for .NET), IHttpActionResult, Web API Odata all are available Visual Studio 2012.

Twitter BootStrap Template:


Now ASP.NET MVC 5 application comes with Twitter Bootstrap, So all goodies of Twitter Bootstrap will be there with your ASP.NET MVC application.

Entity Framework 6.0:


It’s also comes with Entity framework 6.0. Where you have some new great features like Async Query and Save,Connection Resiliency, Code-Based Configuration, Dependency Resolution, Interception/SQL Logging, Improved transaction support etc will be available in Visual Studio 2012 itself.

Also there is a new version of Nuget is also available with this release. So now if one developer has Visual Studio 2012 and another one is having Visual Studio 2013 then also they can work on same project.

This post is a just an overview of all the new features that are available with this release. I will write in detail about all this new features. Stay tuned for more..
Share:
Thursday, November 14, 2013

My visual studio settings

Lots of people send me email about what kind of visual studio settings I am using and I am replying them again and again so I thought it will be good idea to write a blog post about it.

Yes, Since last 2 months I have been using dark theme of Visual Studio 2012 but I am not using default dark theme color settings of visual studio. I’m using dark theme color settings created by Keith Elder. You can find more information about color settings of this theme from following link.

http://keithelder.net/2010/03/05/my-visual-studio-color-settings-again/

I simply love this one and its works on all flavours of Visual Studio starting from Visual Studio 2008 to 2012. Below are few screenshots from that.

VisualStudioDarkTheme

Here is another screenshot.

ClearDarkTheme

It’s been great for eyes and I can work with very easily and as you may notice my default font for visual studio is Consolas and size is 11.

Now lots of people ask me whether its working fine with resharper or not and Its works like a charm. See following screenshot.

ResharperBlackTheme

And this is how intellisense look with Visual studio 2012 dark theme.

VisualStudioIntellisenseDark

And this how HTML part of ASP.NET MVC looks in the dark theme.

DarkHtmlVisualStudioTheme

If you still never try of any dark theme for visual studio then try it and it is great for your eyes. I would like to say big thanks to  Keith Elder for creating a great black theme. If you want to try same theme then you can download that from above link I have mentioned.
Hope you like it. Stay tuned for more..Happy Programming Smile
Share:
Saturday, October 12, 2013

Cool Resharper features part -1

I have been using Jetbrain’s resharper since last four years and it’s been my default Visual Studio plugin for visual studio. After this much of experience of resharper I must say if resharper is not there I would not have that much productive with visual studio. Working with it is a pleasure. I this post I am going to explain some cool resharper features.

Resharper uses two keyboard schemes Visual Studio or Intelli IDEA scheme. In this post I am going to use Intelli IDEA scheme. The only difference between two key map scheme is keyboard shortcut. Some Visual Studio short cut will be override by Resharper.

1) ALT + Enter:

It’s a magic key for resharper you can have any feature with ALT+ Enter whether its refactoring, code completion or anything. You can use ALT + Enter for anything. For example you have some name space un used and you want to remove namespace just press ALT + Enter and it will have popup like following.

ALTEnter

Once you click on this and it will remove unused namespace. Same way I have a class called Student Repository and I have one private variable which I want to initialize with constructor then I just need to press ALT+ Enter on that line and it will open a popup like following.

ALTEnter2


Once you click on Initialize field from constructor(s) parameter and it will create a code like following.

ALTEnter3

2) GO to Type:

This is an awesome feature of navigation. You can have either from resharper menu->Navigation GO to Type or you can have Ctrl + N short cut for intelli IDEA scheme. Once you click it will open a popup and whatever you type it find matching list of type and once you click on type you will be there.

GoToType

3) Find Usage:

This is also an awesome feature for finding usage of particular type or variable. You can right click any type and click on find usage or you have short cut key ALT + f7.

FindUsage

Once you click on Find Usage it will list all load all the find result and you click on any one and you can go to there file.

FindUsage2

3) Smart symbol completion:

When you use Ctrl + Space it will suggest you the option to complete symbol and save lots of keyboard stroke.

SmartCodeCompletion

4) Smart code selection:

With Ctrl + W you can select current type and again you press Ctrl + W it will select line and again you press Ctrl + W you can select method.

SmartCodeSelection
That’s it. This are some feature that I am using I will have more feature list in forth coming posts. Hope you like it. Stay tuned for more.Smile
Share:

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews