Suzan Cioc
Suzan Cioc

Reputation: 30127

How to open BAT (windows batch) file in Eclipse?

How to open BAT (windows batch) file in Eclipse? When I am doing Open File... the file runs, not opens. How to open it in editor?

Dragging file on Eclipse also runs it.

Upvotes: 10

Views: 8905

Answers (3)

de-jcup
de-jcup

Reputation: 1885

Theres is a new open source plugin called Batch-Editor available on eclipse market place. It has syntax color support for dark and white theme included and has an outline view + quick outline for labels.

Here an example screenshot: Batch-Editor example screenshote (dark theme.

It supports also echo and escaping: Batch-Editor example screenshot (echo handlig white theme)

PS: I am the author of the mentioned plugin.

Upvotes: 0

The ShellEd plugin doesn't seem to be for Windows BAT files--only Linux/Unix shell languages.

Going to Preferences->General->Editors->File Associations is how to have Eclipse open BAT files in a text editor, though.

Upvotes: 10

npocmaka
npocmaka

Reputation: 57282

try with this plugin: http://sourceforge.net/apps/trac/shelled/

And also I think you chould go to preferences->general -> editors->file associoations and add bat to the list

Upvotes: 4

Related Questions