Reputation: 30127
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
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.
It supports also echo and escaping:
PS: I am the author of the mentioned plugin.
Upvotes: 0
Reputation: 1771
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
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