JetBrains系列--工具使用方法

JetBrains系列–工具使用方法

介绍

JetBrains 系列IDE是当前最流行最实用的IDE之一了,笔者根据个人实用情况,将相关使用注意事项记录在此处,以便于后续查阅和学习!具体包括软件的常用方式、技巧,linux 下快捷图标配置。
今后将长期在此基础上对本文进行更新补充,包括相关使用技巧和注意事项!

常用IDE

2.1 IDEA

  • 常见命令
    Ctrl+Shift+T 跳转所需要的类
    Ctrl + Shift + R 找到所需要的文件(全局查找)
    Ctrl + shift+alt + N 找到所需要的函数和变量
    Ctrl + H 搜索字符串
    Ctrl + shift + a–>输入要做的事情
    Ctrl +alt+L 格式化代码,或者code->reformat code
    Ctrl + D 复制当前行
    Ctrl + R 替换快捷键

  • 查看类方法
    查看 Diagram图形 的类层次结构图 Crtl + Alt + U(mac option+command+U)
    Crtl + Alt + U 或 Crtl + Alt + Shift + U
    或者右键diagram然后再选择对应选项,如变量、函数等

  • 添加常用插件
    File->settings->plugins->搜索或者选择需要的插件即可;笔者此处使用Scala 、Interrij Light Theme、EduTools、Kubernetes几个常用插件。

  • python项目配置interpreter
    File->Project Structure->Platform Settings->SDKs
    ->单击+号,选择pythonSDK home path即可添加python interpreter,重启即可生效。

  • 显示tab或空格键

    1. File->Settings->Editor->General->Appearance->选中Show whitespaces和Show indentguides;
    2. 右下角选中space或者tab->configure indents for …->Tab and Indents->可以选择是否使用tab character;
  • 显示类函数变量结构

    1. view->tool Windows->structure
    2. alt+7

2.2 pycharm

  1. 添加Python版本
    初次打开项目的时候,没有添加对应的Python版本,则需要手动添加对应版本;
    File->Settings->Project:ProjectName->ProjectInterpreter->选中对应Python版本->Apply即可。

2.3 goland

  • Ubuntu 安装卸载go

    1. 安装方法1
      apt install golang-go
      卸载:
      apt-get remove golang-go
      apt-get remove --auto-remove golang-go
      
    2. 安装方法2:
      wget https://studygolang.com/dl/golang/go1.12.5.linux-amd64.tar.gz
      tar -zxvf go1.12.5.linux-amd64.tar.gz
      mv go /usr/local/
      配置:
      vim .bashrc
      export GOROOT=/usr/local/go              # 安装目录。
      export GOPATH=$HOME/go     # 工作环境
      export GOBIN=$GOPATH/bin           # 可执行文件存放
      export PATH=$GOPATH:$GOBIN:$GOROOT/bin:$PATH       # 添加PATH路径
      
    3. 测试:
      go version
      参考:ubuntu 安装 golang
      GoLand常用快捷键
  • 常见命令/快捷键

    • 显示类函数变量结构
      1. view->tool Windows->structure
      2. alt+7
    • 格式化代码快捷键
      1. ctrl+alt+L
  • goland 支持python
    需要安装插件 Python Community Edition , 然后新建py文件的时候会提示没有python解释器,按需添加即可

  • go 语言常用文档

    1. go语言中文官方文档

2.4 clion

  1. clion正常使用需要依赖gcc和g++
     apt install gcc
     apt install g++
    

3 快捷方式

linux 下的快捷方式主要放在 /usr/share/applications目录下,也可以放在用户目录的 .local 文件夹下面; 此处放在更加通用的 /usr/share/applications 目录。

如果系统没有生成对应的快捷图标,直接将该信息copy到指定的位置即可; jetbrains 系列其它产品做法类似,只需要更改可执行脚本、图标、名称即可。

  1. idea 快捷方式
$ cat idea.desktop 
[Desktop Entry]
Name=IDEA
Comment=Code Editing. Redefined.
GenericName=IDEA
Exec=/home/xg/soft/jetbrains/ideaIU-2021.1.2/bin/idea.sh %F
Icon=/home/xg/soft/jetbrains/ideaIU-2021.1.2/bin/idea.png
Type=Application
StartupNotify=false
StartupWMClass=Code
Categories=Utility;TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-code-workspace;
Actions=new-empty-window;
Keywords=idea;

X-Desktop-File-Install-Version=0.24

[Desktop Action new-empty-window]
Name=IDEA
Exec=/home/xg/soft/jetbrains/ideaIU-2021.1.2/bin/idea.sh %F
Icon=/home/xg/soft/jetbrains/ideaIU-2021.1.2/bin/idea.png
  1. pycham 快捷方式
$ cat pycharm.desktop 
[Desktop Entry]
Name=PC
Comment=Code Editing. Redefined.
GenericName=pycharm
Exec=/home/xg/soft/jetbrains/pycharm-2021.3.1/bin/pycharm.sh %F
Icon=/home/xg/soft/jetbrains/pycharm-2021.3.1/bin/pycharm.png
Type=Application
StartupNotify=false
StartupWMClass=Code
Categories=Utility;TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-code-workspace;
Actions=new-empty-window;
Keywords=pycharm;

X-Desktop-File-Install-Version=0.24

[Desktop Action new-empty-window]
Name=PC
Exec=/home/xg/soft/jetbrains/pycharm-2021.3.1/bin/pycharm.sh %F
Icon=/home/xg/soft/jetbrains/pycharm-2021.3.1/bin/pycharm.png
  1. goland 快捷方式
$ cat goland.desktop 
[Desktop Entry]
Name=GoLand
Comment=Code Editing. Redefined.
GenericName=GoLand
Exec=/home/xg/soft/jetbrains/goLand-2021.2.2/bin/goland.sh %F
Icon=/home/xg/soft/jetbrains/goLand-2021.2.2/bin/goland.png
Type=Application
StartupNotify=false
StartupWMClass=Code
Categories=Utility;TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-code-workspace;
Actions=new-empty-window;
Keywords=goland;

X-Desktop-File-Install-Version=0.24

[Desktop Action new-empty-window]
Name=GoLand
Exec=/home/xg/soft/jetbrains/goLand-2021.2.2/bin/goland.sh %F
Icon=/home/xg/soft/jetbrains/goLand-2021.2.2/bin/goland.png
  1. webstorm 快捷方式
$ cat webstorm.desktop 
[Desktop Entry]
Name=WS
Comment=Code Editing. Redefined.
GenericName=webstorm
Exec=/home/xg/soft/jetbrains/webStorm-2021.3.1/bin/webstorm.sh %F
Icon=/home/xg/soft/jetbrains/webStorm-2021.3.1/bin/webstorm.png
Type=Application
StartupNotify=false
StartupWMClass=Code
Categories=Utility;TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-code-workspace;
Actions=new-empty-window;
Keywords=webstorm;

X-Desktop-File-Install-Version=0.24

[Desktop Action new-empty-window]
Name=IDEA
Exec=/home/xg/soft/jetbrains/webStorm-2021.3.1/bin/webstorm.sh %F
Icon=/home/xg/soft/jetbrains/webStorm-2021.3.1/bin/webstorm.png

4 说明

  1. 笔者使用Ubuntu1910|debian9.11|Windows10系统测试,有特殊情况会单独备注说明!
  2. ubuntu 下卸载pycharm、IntelliJIdea、GoLand 方法
    cd /home/UserName/.config/JetBrains
    删除不需要的文件夹,然后删除解压的安装包即可。
    
  3. 参考网址
    www.jetbrains.com
  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

昕光xg

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值