chinkiver

1580 经验值

试着想下,你在类中其实对属性的输入和输出有各种检查或判断,如果属性定义为Public,这样谁都可以从外部进行修改,那么你的代码逻辑岂不天下大乱

首先,创建一个class,然后优先定义属性,然后随便选一个,然后command+N,然后就可选择需要创建的方法

有没有支持MarkDown画流程图的三方插件?

无法按照视频实现,点击页数,url是正常变化了,但是页面的内容却没有刷新

我来写一个完整的吧。

第一步:安装oh-my-zsh,分别在终端执行下述命令
1、git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
2、cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
3、zsh //此时会进入zsh环境
4、在zsh环境中输入source .zshrc
5、输入exit退出zsh环境
6、重启终端

第二步:代码提示
1、git clone git://github.com/tarruda/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
2、将下述命令加入至.zshrc的末尾(记得vim .zshrc)
source ~/.zsh/zsh-autosuggestions/autosuggestions.zsh
3、重启终端

OK!

先执行zsh
然后再执行source .zshrc
然后exit退出
重启就OK

You are sourcing your .zshrc from Bash. Please note that OMZ is a collection of plugins made for zsh, which is not the same shell as Bash.

You can simply use the zsh command to launch zsh from Bash. Alternatively, you can definitely set your user shell to zsh with chsh -s /bin/zsh — then just open a new terminal to launch zsh.