Tag Info

New answers tagged

1

First of all you'll need the following packages: sudo apt-get install qtcreator-dev qtxmlpatterns5-dev-tools Start a new Project in Qt Creator (Libraries -> Qt Creator Plugin) Give it a name: Confirm the Kit Selection: Use /usr/src/qtcreator for Qt Creator sources and /tmp for Qt Creator build and deploy in Local user settings. Click Next: ...


1

If you have those data in a file file.txt Access 111 as, cat file.txt | tr -d "[]_" | awk 'NR==1 {print $1}' Access 888 as, cat file.txt | tr -d "[]_" | awk 'NR==4 {print $2}' about accessing the fields elements with awk.


1

try this: awk '{gsub("_|\\[|\\]","",$0); print $1 "-" $2;}' prova.txt awk read each line and use " " (white space) as field separator, gsub remove chars: '_' '[' ']', so $1 and $2 will contains token without undesiderable char. This script will output: 111-555 222-666 333-777 444-888 If you would access exactly _111_ and [8888] as first ...


3

I am not aware of any working solution involving qtcreator. You could of course set up a tmux/vim solution to collaborate on code edition but there's many features an IDE provides that can't actually be easily shared with your co-writers. See [Qt-creator] Collaborative Editing


1

This will print all: awk '{print $0}' And to make this long enough: this will print columns 3 to 6: awk -v f=3 -v t=6 '{for(i=f;i<=t;i++) printf("%s%s",$i,(i==t)?"\n":OFS)}' OFS is a built-in variable (there are 8: FS, OFS, RS, ORS, NR, NF, FILENAME, FNR) and is the output field seperator (more here).


2

If you are using geany, there is already functionality to jump to the definition of the variable/function. With the right key via the context menu, or by pressing ctrl+t (after selecting the item) you can jump to the definition. Note: The only limitation is that the file that contains the definition must already be open in geany, otherwise it will not work. ...


1

Emacs has an annotation mode that you may want to explore. I haven't used emacs in the past 6+ years, so cannot give you specific directions, but, google should help.


1

IDEs like Geany, Eclipse, etc. all usually have this feature. If you don't want to go for IDEs, you can try ctags and vim or emacs. I don't know how to use it in emacs, but for vim, you run ctags in the directory containing your source, then use Ctrl] and CtrlT to jump back and forth between a variable/function/class/... and its definition. sudo apt-get ...



Top 50 recent answers are included