Visual Studio 2013 turns on JavaScript smart hints feature

Source: Internet
Author: User
Tags sql using

At the time of the previous release, we shared the integration and functionality of Windows Azure Mobile Services in Visual Studio 2013. It contains an introduction to the editing capabilities of the Mobile service table script. This time, we'll describe how to activate smart hints in your server script in Visual Studio. This feature is not integrated into Visual Studio 2013 preview and the steps below will help you to turn it on.

Before you begin, download our IntelliSense definition file from here. Save these files to a relatively easy-to-access path.

How much do smart tips know?

The files we are going to publish today can provide smart hints for your mobile service table scripts in Visual Studio. This includes working with the data tables of the API, using the push API to send push notifications, and interacting directly with SQL using the MSSQL API. Below is a simple example:

For more information on the limitations and definitions of certain exceptions in the file, please refer to the Readme file.

Enable Smart Tips

In Visual Studio 2013 preview, there are two ways to activate smart hints on your server-side scripts. Use the first method (add an explicit reference to the specified script file) If you do not want to affect smart hints for other JavaScript files that are edited in Visual Studio. For example, if your Windows store application is in JavaScript, then you do not want your client JavaScript files to be injected with smart tips for the mobile service definition. Using the second method (using the Tools-> option to add a reference),

When you want to activate smart hints in all of your server-side scripts, there is no change to the script itself. If your client project is an application based on the C#,vb,c + + Windows Store, the second method may be more appropriate.

1. Add a specific reference to a specific script file

Open a script file (for example, Insert.js) in a script file that needs to turn on smart detection

and add a comment to the Mobileservices.intellisense.js reference above the parent method declaration. The path definition points to the destination of the Mobileservices.intellisense.js reference file that you saved on disk.

Here is the following: If this smart hint file is saved to C:\IntelliSense

2. Add a reference by using the tools, options

Using the Tools-> Options dialog box to add a reference to Mobileservices.intellisense.js, smart hints can also be activated. This will add the mobile service definition to any JavaScript file.

1. Select Tools, Options, text editor, JavaScript, smart tips, and references.

2. Change the Reference group "implicit (Web)".
3. Browse (... The location you point to is where you save the Mobileservices.intellisense.js file and select Open.

Please note that these two programs only apply to your machine, if you are working in a team, or trying to edit scripts on other machines, you need to copy the files to each machine and follow the instructions above. If you edit the script in the Windows Azure Management portal, you will not get support for smart tips.

We hope that when you take advantage of the Windows Azure Mobile services features that are integrated with Visual Studio 2013, you will find this short release useful. Use email to let us know what you think, or you can submit a bug via Microsoft Connect or post it on visual Studio User voice.

Visual Studio 2013 turns on JavaScript smart hints feature

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.