I have created a new sharepoint 2013 site through Central admin. Now how do I open this site (file) in visual studio, because I have to create pagelayouts and content types in visual studio. Please help.
A SharePoint site cannot be opened in Visual Studio. You can develop features in Visual Studio and deploy them through Visual Studio on a SharePoint site which is later activated and used.
If you are using Visual Studio 2012 then I believe you will have to get Office Tools for VS2012 to start your development.
And if you VS2013 then I guess they are already there
How and where to start developing SharePoint 2013 projects in Visual Studio 2012 is a nice start to read
An ideal approach for you would be:
- Create a SharePoint empty project using Visual Studio
- Add modules in it for
- Create a
Packageshould be deployed on SharePoint Site and activating it will give all the page layouts and content type on your site.
You don't open SharePoint sites in the same way you open an ASP.NET website. Getting started with SharePoint development is not as easy as getting started with ASP.NET.
This video, SharePoint for ASP.NET Developers, will not answer your question but it will give you a foundation you can use as a basis for further learning.
I highly recommend that you also consider getting a book or two, getting some online training or attending in-person training. I have recommendations for all of these if you are interested.