題:
IDE和文本編輯器之間的開源交叉?
Allenph
2016-05-11 22:44:44 UTC
view on stackexchange narkive permalink

我是一家小型開發公司的軟件工程師。我最近才將公司轉移到開源運動中。我們所有的非客戶端代碼都是開源的,我們在Linux等系統上運行所有服務器和工作站。

我已經在Ubuntu上使用Kate作為文本編輯器已有一段時間了,但是它缺少一些我想擁有的功能。我想要具有以下特徵的東西...

  • 免費且開源
  • 針對JavaScript,HTML,CSS,SCSS和PHP的代碼突出顯示。 (針對Python和Ruby的獎勵)
  • 與我上面提到的相同語言的代碼完成。
  • 內置終端或終端的插件可用。
  • SFTP / FTP遠程編輯。
  • 能夠打開目錄而不是單個文件。 (遠程和非遠程)。
  • 如果程序是IDE,則它必須是輕量級的。 (不是像Eclipse或Netbeans這樣繁重的東西。)

如果它能夠進行版本控制並能夠使用Git推送更改,我也會欣喜若狂。

我不確定在任何IDE或文本編輯器中是否都可以使用最後一個條件。今天,我經過了很多次尋找符合我條件的工作,但其中沒有一個能夠打開目錄。如果無法做到這一點,或者目前無法在任何地方使用,請解釋為什麼(如果知道),並提供替代方法。

您是否嘗試過[atom.io](https://atom.io/)?我沒有時間完全檢查,但我很確定它可以滿足您的所有要求。
我認為您應該重新考慮Eclipse。它肯定比`vi`重,但是我大多數時候都運行三個實例(三個工作區),以及許多其他事情,所以並不可怕。開箱即用中沒有git / svn集成,但是兩者都有插件。
嗯我今天早些時候剛剛嘗試了Eclipse。我對它不是很印象深刻。臉上似乎有很多隨機的,晦澀的功能,看上去很笨拙。不用說,我發現插件界面很難理解。我也很難調和Eclipse似乎對語言轉換不友好的事實。
您為什麼不想要​​IDE?您如何計劃沒有斷點的調試?
如今,誰用斷點進行調試?當然,除非您要反轉沒有源代碼的二進製文件。 :-)
嘗試Komodo編輯它很棒。語法突出顯示代碼完成。內置FTP客戶端和大量插件。我比崇高文字更多地使用它
“在IDE和文本編輯器之間交叉”的常用術語是“程序員的編輯器”。數十年來,流行的* nix工具(例如Emacs和Vim)都具有這種功能。
二 答案:
Andrea Lazzarotto
2016-05-12 01:01:15 UTC
view on stackexchange narkive permalink

Atom is a very good text editor that covers your requirements.

  • Free and Open-Source
  • Code highlighting for JavaScript, HTML, CSS, SCSS, and PHP. (Bonus for Python and Ruby)
  • Code completion for the same languages I mentioned above.

Check. Atom is open source and it includes code highlighting for the languages you mentioned. Some auto-completion features are provided through packages.

  • Either a built-in terminal, or the availability of a plugin for a terminal.

Take your pick.

  • SFTP/FTP remote editing.

I am not sure about this one, but you mentioned you are working on Ubuntu. I usually just mount the resource using File → Connect to server in Nautilus and use Atom or other editors for working on the files. If you really want it to be managed by Atom, this package seems a good place to start.

  • Ability to open a directory rather than a single file. (Both remotely and non-remotely.)

You can have one or more directories set as projects and you will see the files in the navigation pane. I often run atom . in the working directory I want to use. Here's what it looks like:

Navigation pane in Atom

  • If the program is an IDE it must be lightweight. (Not something heavy like Eclipse or Netbeans.)

Lightweight may mean different things to different people. Atom runs on Electron (based on Chromium). It is a bit slow to start and it might have issues with huge files, however I find it totally fine to work with on a system with 4 GB of RAM.

I would also be ecstatic if it could do version control and had the ability to push changes with Git.

Atom is developed by GitHub. The colors you see in the navigation pane represent the status of each file. I do not use it, but this package seems to provide nice Git functionalities with keyboard shortcuts.

我真的非常喜歡Atom。自從我上次看到該項目以來,該項目已經有了很大的發展。終端加軟件包是我使用過的功能的最佳實現。不幸的是,SSH遠程文件編輯軟件包非常糟糕。一次只能打開一個文件,或者兩端都需要子服務器等。
實際上,我不明白您為什麼要讓Atom處理您的SSH連接。讓Nautilus做到這一點。 ;-)
我也嘗試過。 Atom抱怨說,在安裝服務器時,它無法刪除文件,無法保存任何內容。
@Allenph您確定沒有權限問題?
嗯遠程服務器是Debian。它抱怨缺少垃圾桶等。
agc
2016-05-12 02:03:19 UTC
view on stackexchange narkive permalink

Geany(發音為“ genie”)是GPL2, lightweight ,突出顯示了OP的指定語言,完成了代碼,具有內置終端(或選項卡式的插件)

FTP &目錄打開,,但有些-開發人員建議通過以下方式安裝遠程文件系統:保險絲或LUFS,其功能與FTP等相同。

版本控制( git subversion 等)可以與 GeanyVC插件 git-changebar以獲得更多 git 功能。

實際上,我今天早些時候正和Geany開玩笑。我遇到的主要問題是,它對如何索引項目似乎非常挑剔。根據我在網上可以找到的內容,您必須在項目中保留一個.geany配置文件,該文件明確定義了屬於該項目的文件。僅使用單獨創建一個Laravel項目將是手工編制索引的噩夢。


該問答將自動從英語翻譯而來。原始內容可在stackexchange上找到,我們感謝它分發的cc by-sa 3.0許可。
Loading...