diff --git a/1-js/01-getting-started/3-code-editors/article.md b/1-js/01-getting-started/3-code-editors/article.md index 6532e54a3..5419d43e0 100644 --- a/1-js/01-getting-started/3-code-editors/article.md +++ b/1-js/01-getting-started/3-code-editors/article.md @@ -1,45 +1,46 @@ -# Code editors +# 程式編輯器 -A code editor is the place where programmers spend most of their time. +程式設計師花最多時間的地方就是在使用程式編輯器。 -There are two main types of code editors: IDEs and lightweight editors. Many people use one tool of each type. +程式編輯器主要分兩類:整合開發環境 (IDEs) 和輕量化編輯器,很多人每種都會選一個使用。 ## IDE -The term [IDE](https://en.wikipedia.org/wiki/Integrated_development_environment) (Integrated Development Environment) refers to a powerful editor with many features that usually operates on a "whole project." As the name suggests, it's not just an editor, but a full-scale "development environment." +[IDE](https://en.wikipedia.org/wiki/Integrated_development_environment) (Integrated Development Environment) 這個詞意會著一個強大且擁有許多功能的編輯器,通常使用在開發 "整個專案" 上。顧名思義,它不只是一個編輯器也是一個完整 "開發環境"。 -An IDE loads the project (which can be many files), allows navigation between files, provides autocompletion based on the whole project (not just the open file), and integrates with a version management system (like [git](https://git-scm.com/)), a testing environment, and other "project-level" stuff. +一個 IDE 載入專案 (通常代表很多檔案) ,允許於不同檔案間切換,基於整個專案提供自動完成 (autocompletion) 功能 (而非只是開檔案),並且整合版本控制系統 (像是 [git](https://git-scm.com/))、測試環境和其他專案等級的東西。 -If you haven't selected an IDE yet, consider the following options: +如果你還沒選擇使用一個 IDE,可以考慮以下選擇: -- [Visual Studio Code](https://code.visualstudio.com/) (cross-platform, free). -- [WebStorm](http://www.jetbrains.com/webstorm/) (cross-platform, paid). +- [Visual Studio Code](https://code.visualstudio.com/) (跨平台,免費)。 +- [WebStorm](http://www.jetbrains.com/webstorm/) (跨平台,付費)。 -For Windows, there's also "Visual Studio", not to be confused with "Visual Studio Code". "Visual Studio" is a paid and mighty Windows-only editor, well-suited for the .NET platform. It's also good at JavaScript. There's also a free version [Visual Studio Community](https://www.visualstudio.com/vs/community/). +若使用 Windows 系統,也可選用 "Visual Studio",但別跟 "Visual Studio Code" 搞混了。"Visual Studio" 是一個需付費且強大的 Windows 專屬編輯器,特別適合開發 .NET 平台,用來開發 JavaScript 也不錯。它有個免費的版本 [Visual Studio Community](https://www.visualstudio.com/vs/community/)。 -Many IDEs are paid, but have a trial period. Their cost is usually negligible compared to a qualified developer's salary, so just choose the best one for you. +許多 IDEs 都需要付費,但都有試用期。這些花費對於一個合格開發者的薪水來說通常微不足道,所以就選個最適合你的吧。 -## Lightweight editors +## 輕量化編輯器 -"Lightweight editors" are not as powerful as IDEs, but they're fast, elegant and simple. +"輕量化編輯器" 沒有像 IDEs 那麼強大,但它們速度快、優雅且簡單。 -They are mainly used to open and edit a file instantly. +它們主要用在快速開啟編輯一份檔案。 -The main difference between a "lightweight editor" and an "IDE" is that an IDE works on a project-level, so it loads much more data on start, analyzes the project structure if needed and so on. A lightweight editor is much faster if we need only one file. +"輕量化編輯器" 與 "IDE" 最大的差異在於 IDE 適用於專案等級,所以它在初始時載入許多資料並處理分析整個專案結構等事情。若我們只要開一個檔案,輕量化編輯器快多了。 -In practice, lightweight editors may have a lot of plugins including directory-level syntax analyzers and autocompleters, so there's no strict border between a lightweight editor and an IDE. +實際上,輕量化編輯器可能有各式各樣的插件,包含目錄語法層級分析與自動程式補完,所以兩者間並沒有明顯的界線。 -The following options deserve your attention: +以下是一些值得考慮的選擇: -- [Atom](https://atom.io/) (cross-platform, free). -- [Sublime Text](http://www.sublimetext.com) (cross-platform, shareware). -- [Notepad++](https://notepad-plus-plus.org/) (Windows, free). -- [Vim](http://www.vim.org/) and [Emacs](https://www.gnu.org/software/emacs/) are also cool if you know how to use them. +- [Atom](https://atom.io/) (跨平台,免費)。 +- [Sublime Text](http://www.sublimetext.com) (跨平台,共享軟體)。 +- [Notepad++](https://notepad-plus-plus.org/) (Windows,免費)。 +- [Vim](http://www.vim.org/) 和 [Emacs](https://www.gnu.org/software/emacs/) 也很不錯,前提是你要知道怎麼使用。 -## Let's not argue +## 不要起爭議 -The editors in the lists above are those that either I or my friends whom I consider good developers have been using for a long time and are happy with. +上面列出的是我或一些我認為厲害的開發者朋友們使用過一陣子且覺得不錯的編輯器。 -There are other great editors in our big world. Please choose the one you like the most. +世上還有其他不錯的編輯器,請選一個你最喜歡的。 + +選擇編輯器就像選其他工具一樣,需要依照你的專案、習慣和個人喜好選擇。 -The choice of an editor, like any other tool, is individual and depends on your projects, habits, and personal preferences.