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.