Ubuntu14.10 Configuration Gedit

Source: Internet
Author: User

Today, according to the Fudan Yangyue great God's Amway paste configuration of the next gedit. Thank you fork sister to provide the platform, Amway post transfer door: HTTP://ASYNC.ICPC-CAMP.ORG/D/108-YY/36


I tried it in the morning and found that there was no configuration, and then I changed the script in response to YouTube's video, OK.


Here's the code for the script:

Direct Debugging (CRTL+F8):

#!/bin/bash


file= $GEDIT _current_document_name
out=${file%.*}

g++-ggdb-std=c++11-o $OUT-wall-wshadow $FILE  && gnome-terminal--working-directory= $CURRENT _gedit_document_dir-e "bash-c \" gdb./$OUT \ "";




Use. in file (CTRL+F10):

#!/bin/bash


file= $GEDIT _current_document_name
out=${file%.*}

If [-f $OUT. in]; then g++-std=c++11
- o $OUT-o2-wall-wshadow $FILE && gnome-terminal--working-directory= $CURRENT _gedit_document_dir-e "Bash-c" Ti Me./$OUT < $OUT. in; Read \ "";
else
g++-std=c++11-o $OUT-o2-wall-wshadow $FILE && gnome-terminal--working-directory= $CURRENT _gedit_ Document_dir-e "bash-c \" time./$OUT; Read \ "";
Fi




Then the installation of Gedit Plug-ins, to achieve code folding, highlighting and so on.

sudo apt-add-repository ppa:ubuntu-on-rails/ppa-  Add source to Source list/etc/apt/sources.list
sudo apt-get update                              - -Update source list
sudo apt-get install gedit-gmate                 





Gedit-plugins has failed to install. However, gedit-gmate is almost adequate. So, just ignore it.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.