简体   繁体   English

无法安装gedit插件

[英]Cannot install gedit plugin

I am new to Linux so please go easy on me. 我是Linux的新手,所以请放轻松。 I am writing a program in c and formatting my code with vi editor and/or gedit is becoming a real pain in the butt; 我正在用c编写程序,并使用vi编辑器和/或gedit格式化我的代码,这实在是一个麻烦。 So, I need something to help me with the indentations of the code. 因此,我需要一些帮助代码缩进的东西。 I found this post here: 我在这里找到了这篇文章:

How to get gedit to auto-indent code 如何让Gedit自动缩进代码

  • The best response,basically refers the asked question to a plugin for gedit text editor. 最好的回答,基本上是将询问的问题转给gedit文本编辑器的插件。
  • I followed the instructions; 我按照指示进行; ie., I created .gnome2/gedit/plugins folders in the home directory and copied the extracted files there. 即,我在主目录中创建了.gnome2 / gedit / plugins文件夹,并将提取的文件复制到该目录中。
  • went to edit, preferences,plugins, but the "Intelligent Text Completion" option is not there. 去编辑,首选项,插件,但“智能文本补全”选项不存在。

-I am running Ubuntu on virtual box. -我在虚拟机上运行Ubuntu。

Am I doing something wrong? 难道我做错了什么? OR is there something easier for me to do? 还是我更容易做些事情?

per the gedit help contents, use 'sudo apt-get install gedit-plugins' However, I did not see any facility to enforce 'C' code formatting. 根据gedit帮助的内容,使用'sudo apt-get install gedit-plugins'但是,我没有看到任何用于实施'C'代码格式的工具。

I would suggest using 'geany' which is available by: 'sudo apt-get install geany' 我建议使用“ geany”,它可以通过以下方式获得:“ sudo apt-get install geany”

It comes with the facilities for many different languages, including one click compile, one click build, one click run, configurable formatting, and many other very useful programming features. 它具有用于多种不同语言的功能,包括一键编译,一键构建,一键运行,可配置的格式设置以及许多其他非常有用的编程功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM