Ubuntu18.04 常用工具的安装及配置

Codeblocks

$ sudo apt-get install codeblocks
$ sudo apt-get install codeblocks-dbg
$ codeblocks (start the codeblocks program)

颜色配置:color-theme.conf

配置文件在
http://wiki.codeblocks.org/index.php/Syntax_highlighting_custom_colour_themes

该配置文件(color-theme.conf)应该放在
/home/spacesoftwares/.config/codeblocks/color-theme.conf
如果不起作用,就把原来那个default.conf放到其他地方去(避免出错要找回来再用),然后把这个新的color-theme.conf改成default.conf(相当于替换掉原来那个default.conf),这样就可以了。配置在codeblocks->settings->editors->syntax highlighting...

查看配置命令

sudo cb_share_config

Typora (Markdown editor)

# or use
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -

# add Typora's repository
sudo add-apt-repository 'deb https://typora.io/linux ./'
sudo apt-get update

# install typora
sudo apt-get install typora

Notepad++

Step 1: Get Snap
一个很方便的包管理工具,很小,
sudo apt-get install snapd snapd-xdg-open

Step 2: Install Notepad++
sudo snap install notepad-plus-plus
这个比较耗时间,耐心点。安装完毕,你应该可以看到
    notepad-plus-plus 7.5.6 from ‘mmtrt’ installed

Step 3: Install some plugin…, if you want...
sudo snap connect notepad-plus-plus:process-control
sudo snap connect notepad-plus-plus:removable-media
sudo snap connect notepad-plus-plus:hardware-observe
sudo snap connect notepad-plus-plus:cups-control

文字颜色的配置在这里(注意使用snap时才会是这个路径)setting->style configurator...
/home/spacesoftwares/snap/notepad-plus-plus/124/notepad-plus-plus/themes
你可以到网上去找颜色配置,比如
https://techmantium.com/10-great-notepad-colour-schemes/

Visual studio code开发环境

直接到官方的网站上下载安装包安装即可
https://code.visualstudio.com/docs/?dv=linux64_deb
说实话,微软在调试设计方面还是蛮务实的,用起来比emacs顺手(尤其是对深度windows中毒的。。。),
使用方法:
matthew@spacesoftwares:~/CPP$ g++ -o test test.cpp -g
matthew@spacesoftwares:~/CPP$ dir
test  test.cpp
可以看到,已经生成了可以调试的test可执行文件

安装完vscode后,直接debug->start debugging,如果你是第一次的话,会要求安装语言工具,这时你安装C/C++ for visual studio code (intellisense)即可,(当然,前提是gdb已经安装了)。
然后,在程序中断处打上断点,点击左边的Debug,(Ctrl+Shift+D),就可以开始运行程序
visual sutudio code 会调用gdb来进行相关调试。
顺便给一下那个配置文件,(打开文件夹后修改launch.json中的要调试的程序的名称 "program": "test", 如果找不到就写全路径,如"program": ""/home/spacesoftwares/testproject/test")

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(gdb) Launch",
            "type": "cppdbg",
            "request": "launch",
            "program": "test",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": true,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ]
        }
    ]
}

Latex

sudo apt-get install texlive-full; or, sudo apt-get install texlive
sudo apt-get install texmaker
 

下面列出的都是收费的,这里专为免费用户列出来是避免安装又卸载,担误时间!

Master PDF editor

这个广告很强大,到处占搜索资源。编辑会不断强制加水印(不是加一层,而是一层又一层,所以不交费是没法用的)
 

猜你喜欢

转载自blog.csdn.net/tanmx219/article/details/83245691
今日推荐