For faster navigation, this Iframe is preloading the Wikiwand page for 原始碼編輯器.

原始碼編輯器

原始碼編輯器粵音:jyun4 ci2 maa5 pin1 cap1 hei3),又叫源碼編輯器,指適合或者特別設計來編輯原始碼文字編輯器,或者用來畀編程員輸入同更改程式嘅某種功能。

如果係文字編輯器,最低嘅要求係可以顯示行號同唔會令原始碼變成亂碼或者對源始碼作出其他無故改變。額外功能會有係一啲方便用家編輯一個程式嘅原始碼,例如用唔同色或者唔同字體顯示保留字或者其他語法、容易知道對應嘅開閂括弧喺邊、易啲搵嘢、易啲或者自動做縮排格式化等等。

功能

[編輯]
  • 句法突顯:按一段字嘅特性,將段字顯示做唔同嘅色水或者唔同字款,等段字更加易睇;即係例如顯示段源碼嗰陣,表示變數嘅字冚唪唥黑色,表示迴圈陳述式嘅字冚唪唥藍色,表示注釋嘅字冚唪唥綠色... 如此類推,好似下圖幅 gif 噉,噉用家容易一眼就睇到每段字係表示啲乜[1]
  • 自動完成:指估計用家跟住想打啲乜碼,畀用家齋靠撳一兩個掣就即刻打段碼出嚟;好似下圖幅 gif 噉,用家淨係打咗 Conso,個編輯器經已估佢想打 Console 同相關嘅陳述式,仲畀佢有得打打吓直接叫個編輯器出其中一段陳述式[2]
  • 括弧配對:指「檢驗啲括弧啱唔啱」嘅功能,例如 ((())) 呢段碼有 3 個 ( 3 個 ),所以啲括弧配對得啱,而 (({))) 呢段碼就唔啱-有 2 個 ( 3 個 ),而個 { 冇對應嘅 }。括弧配對功能就係攞一段碼,然後話畀用家知「啲括弧啱唔啱,而如果唔啱,係喺邊個位出錯」噉嘅資訊[3]
一幅 gif 顯示位用家喺度睇同改個程式嘅源碼畀用家睇同編輯程式嘅源碼係寫程式架生最基本嘅功能之一。
  • 代碼審查:喺專業嘅軟件工程當中,寫好個程式嘅源碼之後通常會搵人睇吓段碼,當中負責睇段碼嘅人係冇份寫段碼嘅;寫程式架生好多時會有啲功能,幫手做代碼審查嘅工作,例如有唔少常犯錯誤都係電腦程式可以輕易噉探測到嘅,所以寫程式架生會內置埋「自動噉檢查吓啲碼,睇吓啲碼有冇呢啲常犯錯誤」嘅功能[4][5]

... 呀噉。

睇埋

[編輯]

引述

[編輯]
  1. Sarkar, A. (2015, July). The impact of syntax colouring on program comprehension. In PPIG (p. 8).
  2. Murray, K. I., & Bigham, J. P. (2011, September). Beyond autocomplete: Automatic function definition (PDF). In 2011 IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC) (pp. 259-260). IEEE.
  3. Automatic Brace Matching in Visual Studio.
  4. Baum, Tobias; Liskin, Olga; Niklas, Kai; Schneider, Kurt (2016). "A Faceted Classification Scheme for Change-Based Industrial Code Review Processes". 2016 IEEE International Conference on Software Quality, Reliability and Security (QRS). pp. 74-85.
  5. Kolawa, Adam; Huizinga, Dorota (2007). Automated Defect Prevention: Best Practices in Software Management. Wiley-IEEE Computer Society Press.

[編輯]
{{bottomLinkPreText}} {{bottomLinkText}}
原始碼編輯器
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?