月度归档:2018年09月

在 debian/ubuntu 系 linux 中安装QQ和微信

最新方法,执行以下命令:

wget -O- https://deepin-wine.i-m.dev/setup.sh | sh

出现以下提示,按需要执行即可:

大功告成,现在可以试试安装deepin-wine软件了,
安装/更新TIM:sudo apt-get install deepin.com.qq.office
安装/更新QQ:sudo apt-get install deepin.com.qq.im
安装/更新微信:sudo apt-get install deepin.com.wechat

继续阅读

安装 phpstorm 后的设置

隐藏编辑器中的浏览器图标

Tools - Web Browsers - Show browser popup in the editor ,去掉前面的勾。

函数提示

Editor > General > Appearance > parameter name hints ,或搜索 parameter name hints,去掉前面的勾。

Inotify监视限制

  1. Add the following line to either /etc/sysctl.conf file or a new *.conf file (e.g. idea.conf) under /etc/sysctl.d/ directory:
fs.inotify.max_user_watches = 524288
  1. Then run this command to apply the change:
sudo sysctl -p --system

And don’t forget to restart your IDE.

javascript 分号 ; 输入提示

Editor - Code Style - JavaScript - Punctuation ,把 Use 改为 Don't use semicolon …。

隐藏 面包屑

Editor > General > Breadcrumbs > Show breadcrumbs 去掉前面的勾。

取消 phpstorm 自动保存功能

npm run watch 会监视文件变化,并将保存后的文件编译。但有时候在开发中,系统将有还没有完成的代码也自动保存,导致编译失败,并使 npm 无法继续监视文件,因此关闭。

Editor - General - Editor Tabs - Mark modified tabs with asterisk 勾上,Appearance & Behavior - System Setting ,将右边 Save files on frame deactivationSave files automatically if application is idle for 15 sec. 前面的对勾去掉。

在 WebStorm 中,配置能够识别 Vue CLI 3 创建的项目的别名 alias @

webstorm webpack 直接引入文件 项目目录/node_modules/@vue/cli-service/webpack.config.js 即可。

列编辑

快捷键: alt + shift + ins

DELL G7 安装 linux

新入手的 DELL G7 玩游戏很流畅,但是工作要用 linux,尝试安装 mint 。

  1. 使用 MultiSystem 制作启动盘,安装方法
  2. 确保主板的 safe boot 功能关闭。
  3. 使用U盘启动,并在 GRUB 界面选中 mint 系统,按下键盘 e ,找到 linux 开头的一行,在 quiet splash 后面添加 nomodeset ,按 F10 启动。这一步的作用,是阻止系统识别显卡,独立显示需要装好后单独安装驱动。
  4. 进入系统后,如果不想要 windows 了就全部格掉。如果要并存,就跳过这一步。
  5. 新建一个 UEFI 分区,设为 /boot/uefi ,其他正常安装。若有多系统,安装时会自动检查其他系统(UEFI分区),在 GRUB 菜单显示多系统选择。
  6. 装好后仍然需要使用 第3步 的方法添加 nomodeset ,如果是单系统没有出现 GRUB 菜单,在启动时按住 shift 键。
  7. 更新系统,并安装显卡驱动,完成后重启。显卡驱动装上后就可以直接启动了。