首页 > 其他 > 详细

Atom安装插件的几种方式

时间:2019-08-26 19:41:30      阅读:95      评论:0      收藏:0      [点我收藏+]

Atom安装插件的几种方式

GUI安装

  1. 打开Atom->File->Settings->Install
  2. 输入你想要安装的插件名/Theme名

命令行安装

  1. 打开cmd命令行程序
  2. 切换到.atom/package目录(一般在用户目录下)
  3. 输入命令apm install package_name,其中package_name是插件的名字

手动安装

手动安装

  1. 在atom.io网站找到你想要的插件
  2. 进入插件的github页面
  3. 克隆仓库到本地
  4. 将下载的文件拷贝到.atom/package目录
  5. 在cmd进入插件目录,输入apm install安装
  var >>~~hello~~<< = ‘hello world‘
  var >>==hello==<< = ‘hello world‘
  var >>**hello**<< = ‘hello world‘
  var >>++hello++<< = ‘hello world‘
  1. import org.apache.commons.codec.digest.DigestUtils; 
  2. import org.apache.commons.io.IOUtils; 
  3.  
  4. import java.io.*; 
  5. import java.math.BigInteger; 
  6. import java.security.MessageDigest; 
  7.  
  8. public class Md5Util { 
  9.  
  10. private static MessageDigest md5; 
  11.  
  12. static { 
  13. try { 
  14. md5 = MessageDigest.getInstance("MD5"); 
  15. } catch (Exception e) { 
  16. throw new RuntimeException(e); 
  17. } 
  18. } 
  19.  
  20. public static String getMd5(String string) { 
  21. try { 
  22. byte[] bs = md5.digest(string.getBytes("UTF-8")); 
  23. StringBuilder sb = new StringBuilder(40); 
  24. for (byte x : bs) { 
  25. if ((x & 0xff) >> 4 == 0) { 
  26. sb.append("0").append(Integer.toHexString(x & 0xff)); 
  27. } else { 
  28. sb.append(Integer.toHexString(x & 0xff)); 
  29. } 
  30. } 
  31. return sb.toString(); 
  32. } catch (UnsupportedEncodingException e) { 
  33. throw new RuntimeException(e); 
  34. } 
  35. } 
  36.  

Atom安装插件的几种方式

原文:https://www.cnblogs.com/liuysz/p/11414418.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!