我刚刚运行了这段代码,对我来说它看起来很漂亮。
但是当我在NetBeans IDE中尝试时,我看不到任何Vala,也没有看到任何自动完成可用性。
知道如何让NetBeans IDE允许Vala吗? (特别要自动完成)
e.g:
using Gtk;
int main (string[] args)
{
Gtk.init (ref args);
var window = new Window ();
window.title = "First GTK+ Program";
window.border_width = 10;
window.window_position = WindowPosition.CENTER;
window.set_default_size (350, 70);
window.destroy.connect (Gtk.main_quit);
var button = new Button.with_label ("Click me!");
button.clicked.connect (() => {
button.label = "Thank you";
});
window.add (button);
window.show_all ();
Gtk.main ();
return 0;
}
我从这里试过:https://github.com/carbonfx/netbeans-valaproject/downloads 但是不起作用。
跟进:
NetBeans IDE我无法让有人可以在以后更新它!
我使用yum -y install anjuta安装了Anjuta IDE,只是Vala工作
![]()
我也会尝试这个:http://yorba.org/valencia/