JScript IntelliSense 用ファイルを作る

投稿日 : 2008年11月19日 1:14

 Visual Studio 2008 の機能、JScriptのIntelliSense ですが、VSが自動で構文を認識して支援するだけでなく、IntelliSense用の外部JSファイル用意して開発時に利用する方法もあります。まぁVSの能力に限界があるためかもしれませんが。

 たとえば、こんなコードを書いて(テキトーだな↓)

Sample = function(name) {
    /// <summary>サンプルクラス</summary>
    /// <param name="name" type="String">名前</param>
    /// <field name="Name">名前</field>
}

Sample.Version = function() {
    /// <summary>バージョン</summary>
    /// <returns type="String"></returns>
}

Sample.prototype = {
    Name: null,
    Foo: function(foo) {
        /// <summary>ほげほげ</summary>
        /// <param name="foo">もげもげ</param>
    }
}

 コメントで参照すれば

/// <reference path="ScriptFile1.js" />

 

 入力時に

Sample

Sample

Sample

といった具合に、IntelliSenseが働きます。この自分でIntelliSense用のファイルを用意することについてはドキュメント少ない感じかなー? 方法 : JScript XML コード コメントを作成する とかあるけど、上記で示した<field>にはふれてないですね。

Sample

 Nameの部分の記述に注目です。この書き方は、Virtual Earth用のJScript IntelliSenseを参考にしました。

続く?

フィードバック

# JScript IntelliSense 用ファイル生成を考える

2008/11/20 0:17 by katamari.wankuma.com
JScript IntelliSense 用ファイル生成を考える

# VCLQBhvpJZqwfqUxDo

2014/07/19 0:57 by http://crorkz.com/
RpBDz5 Really informative blog post.Really looking forward to read more. Great.

# pWXxTqSGbvvF

2014/08/06 22:53 by http://crorkz.com/
G7bk7p Appreciate you sharing, great post. Really Great.

# NqqOFaUTsdcJFtH

2014/08/29 7:44 by http://podle.pl/
Excellent website. Plenty of useful info here. I'm sending it to a few friends ans also sharing in delicious. And certainly, thanks for your sweat!

# wnAQeviPKJCy

2014/09/03 21:28 by https://www.youtube.com/watch?v=cTkBiqmO3cs
Very efficiently written article. It will be helpful to anyone who employess it, including me. Keep doing what you are doing - looking forward to more posts.

# HfOCQtjOLTDyrGQ

2014/09/09 11:23 by http://vender-na-internet.com/
you've an awesome weblog right here! would you wish to make some invite posts on my weblog?

# iPttLDYaqAoy

2014/09/10 16:22 by https://www.facebook.com/SunsetValleyHolidayHouses
I've learn some excellent stuff here. Certainly price bookmarking for revisiting. I surprise how so much effort you put to create this type of fantastic informative web site.

# FUEfSelxbay

2014/09/14 20:17 by http://distancity.com/
It's in point of fact a great and useful piece of information. I am glad that you simply shared this helpful information with us. Please stay us informed like this. Thanks for sharing.

# EkEsPaFEVYSuqy

2014/09/18 16:56 by http://conciergeforthecure.info/story/30820
Arf2nb Im thankful for the blog post.

# vuwAPqrAgUQPXukFHJM

2015/05/03 7:24 by horny
PwvLhz http://www.FyLitCl7Pf7kjQdDUOLQOuaxTXbj5iNG.com

# mWPoTOJqoPus

2015/05/19 16:08 by Ellsworth
I like watching football http://www.ctahperd.org/about-us.html erexin v mega forum The snakes were so emaciated that their ribs bulged out. Tubs and freezers inside were filled with carcasses, according to investigators. In a statement after authorities raided the facility in December, PETA said workers there shot at animals with BB guns, froze some alive and bludgeoned animals they wanted to kill.
コメントの入力
タイトル
名前
Url
コメント