Recent
Apps
SharePoint 2013

Developing for SharePoint 2010 with jQuery Intellisense and more!

Do  you ever have days when you sit back, take a breath and ponder just how rudimentary SharePoint Designer can feel when compared with a real IDE?

I know I do and it’s this very thought that compelled me to search for an alternative. What I ended up with was a quick and easy setup that allows me to have code collapse,  better syntax highlighting and jQuery Intellisense when I need to do some serious JavaScript editing.

Before I explain I want to make something clear. This is not for everyone. SharePoint Design is great for everything and anything SharePoint. It handles Wysiwyg editing, Web Part creation and much more, but some times I spend days upon days on just html, css and javascript. All I need is access to my layouts and branding files. If this sounds like you, keep on reading.

I have been using Visual Studio 2008 /2010 to edit files stored in my SharePoint Content database by simply mapping my Site Collection’s WebDAV to a drive! Follow these steps and you can too!

1) Map a network Drive


Enter your SharePoint site’s address and make sure you login with the SharePoint creds


In Visual Studio open a website

If you need to access a hidden folder simply type it and click open


Tada! SharePoint files from a content database in Visual Studio!


To add additional folders simply click the solution and “add” an “existing web site”


Here you can see 3 sites added. Instead of including the root directory I just mapped the 3 I would be using.

Now what about jQuery Intellisense?

Download the most current “Documentation: Visual Studio” on the jQuery website.

Include it in Javascript Directory. And add the following refrence at the top of your Javascript files.

Look! Intellisense on a JavaScript File located in the SharePoint Content Database!

You can even open Page Layouts, Edit and save.

Unfortunatly you can’t open Master Pages. But CSS and aspx pages are ok!

11 Responses to “Developing for SharePoint 2010 with jQuery Intellisense and more!”

  1. Andy Nogueira Says:

    This is a great post. Thanks Tom. Will make my jQuery edit a lot easier :-)

  2. Matt Hughes Says:

    Dude, you need to blog more often, the few posts you have made are excellent.
    Please come back and post more.

  3. Brandon Anderson Says:

    Nice post, Tom. I also make SharePoint not look like SharePoint. Are you on Twitter? I’d like to connect.

  4. Loriann Hakanson Says:

    30. Hello, your write-up is extremely instructive and I really like the content exactly where in every element is extremely important. By some means, it provides me much more understanding about things that’s happening these days.

  5. Omar Stewey Says:

    Man this is awesome. Editing the master page would have made this so complete. I don’t know why this isn’t just supported ootb. Thanks Tom.

  6. Dean Says:

    Tom, do you know how i might be able to add jquery intellisense to SharePoint designer 2010? Thanks in advance

  7. Deepti Kalra Says:

    I’m unable to map my sharepoint site to Network drive. Throws ‘Windows cannot access …’ error

  8. Best Bread Recipes Says:

    Best Bread Recipes…

    [...]SharePoint Branding and Design – Tom Wilson » Blog Archive » Developing for SharePoint 2010 with jQuery Intellisense and more![...]…

  9. l_beka_l Says:

    Great Post , Editing from VS it’s great

  10. Sandeep Says:

    Hi Tom,

    Your Post is simply awesome!!!!
    But in my case i couldn’t able to map network drive. It Throws “Windows Cannot access”
    I am in windows server 2008 64 bit OS. Can you Please help me in this?

    Thanks In Advance!!!!!

    Sandeep

  11. Tom Says:

    Hey Sandeep,

    In Windows 2008 the Desktop Experience feature needs to be installed to be able to use WebDav (Which is what the mapping as a network drive does)
    Hope that helps you and others who have issues with this.

    Thanks
    Tom

Leave a Reply

Whitepaper RSS Feed