Flex-代码格式化插件: Flex Formatter

FlexFormatter是一款用于FlexBuilder/FlashBuilder的免费开源插件,能够根据广泛的设置格式化ActionScript代码(AS3)和MXML,并自动生成ASDoc注释。它支持多种代码格式设置选项,如括号样式、参数和运算符周围的空白符处理、导入排序等。

 

Flex Formatter is an extremely useful plugin for FlexBuilder / FlashBuilder that formats your ActionScript code (AS3) and MXML according to a broad range of settings, and helps you to generate ASDoc comments automatically. It is free, and open source.

It's code formatting is quite robust and configurable, handling things like brace settings (cuddling versus next line), white space around parameters and operators, sorting imports, and a ton more. Thankfully, you can export your settings to a file and share it with your whole team. You can also have it automatically update settings from a file that you can share over the network or via SVN / GIT.

Unfortunately, it's ASDoc features are much more rudimentary, and do not have any configuration options. They serve as an acceptable starting point, and save some time, but I would love to see some additional support here (for example, an option to mark private and or protected members as @private, which is a very common requirement).

Regrettably, Flex Formatter does not seem to come with installation instructions. If you are not familiar with installing Eclipse plugins, it can take a lot of work to figure it out, but it's very simple if you know how to do it:

  1. Start up FlexBuilder / FlashBuilder.
  2. From the Help menu, select 'Software Updates > Find and Install...'
  3. Select 'Search for new features to install' and click 'Next >'
  4. Click 'New Remote Site...'
  5. Use name: 'Flex Formatter' and url: 'http://flexformatter.googlecode.com/svn/trunk/FlexFormatter/FlexPrettyPrintCommandUpdateSite/'
  6. Click OK
  7. Make sure only 'Flex Formatter' is selected in the 'Sites to search' list, and click 'Finish'
  8. Follow the prompts to install Flex Formatter, and restart the IDE

Once you've restarted, you should see the Flex Formatter bar with buttons to ASDoc, format, and rearrange your code. You should also have a 'Flex Formatting' entry in preferences.

If you'd like, you can import my settings for Flex Formatter. You can download them by clicking here, unzip them, and import them using the 'import...' button at the bottom of Flex Formatter's preferences.

Flex Formatter's project home is here and you can find documentation on it's settings here.

 

PowerShell 7 环境已加载 (版本: 7.3.6) PS C:\Users\Administrator\Desktop> cd E:\AI_System\web_ui PS E:\AI_System\web_ui> .\.venv\Scripts\activate (.venv) PS E:\AI_System\web_ui> python server.py 项目根目录: E:\AI_System 2025-08-23 02:03:32,537 - WebServer - INFO - 强制启用离线模式... 2025-08-23 02:03:32,537 - WebServer - INFO - TRANSFORMERS_OFFLINE: 1 2025-08-23 02:03:32,537 - WebServer - INFO - HF_DATASETS_OFFLINE: 1 2025-08-23 02:03:32,537 - WebServer - INFO - HF_HUB_OFFLINE: 1 配置目录: E:\AI_System\config 2025-08-23 02:03:33,708 - ConfigLoader - INFO - ✅ 检测到有效工作区: E:\AI_System 2025-08-23 02:03:33,708 - ConfigLoader - INFO - ✅ 已加载环境文件: E:\AI_System\.env 2025-08-23 02:03:33,708 - ConfigLoader - INFO - ✅ 已加载硬件配置文件: E:\AI_System\config\hardware_config.json 2025-08-23 02:03:33,708 - ConfigLoader - INFO - ============================================================ 2025-08-23 02:03:33,708 - ConfigLoader - INFO - 🏠 工作区根目录: E:\AI_System 2025-08-23 02:03:33,708 - ConfigLoader - INFO - 🌿 环境: development (DEBUG: True) 2025-08-23 02:03:33,708 - ConfigLoader - INFO - 🌐 主机: 0.0.0.0:8000 (Gradio: 7860) 2025-08-23 02:03:33,708 - ConfigLoader - INFO - 📝 日志级别: DEBUG 2025-08-23 02:03:33,708 - ConfigLoader - INFO - 💾 模型缓存: E:\ai_temp\models 2025-08-23 02:03:33,708 - ConfigLoader - INFO - 🤖 默认模型: minimal-model (GPU: False) 2025-08-23 02:03:33,708 - ConfigLoader - INFO - 🔑 安全密钥: ***** 2025-08-23 02:03:33,708 - ConfigLoader - INFO - ⏰ 生活系统: 启用 2025-08-23 02:03:33,708 - ConfigLoader - INFO - 🗄️ 数据库: sqlite://ai_user@localhost:5432/ai_system 2025-08-23 02:03:33,708 - ConfigLoader - INFO - ============================================================ Traceback (most recent call last): File "E:\AI_System\web_ui\server.py", line 71, in <module> from agent.autonomous_agent import AutonomousAgent File "E:\AI_System\agent\__init__.py", line 15, in <module> from .model_manager import ModelManager File "E:\AI_System\agent\model_manager.py", line 14, in <module> from core.model_loader import ModelLoader File "E:\AI_System\core\__init__.py", line 25, in <module> from . import models File "E:\AI_System\core\models.py", line 16, in <module> class ModelConfig(BaseModel): File "E:\AI_System\core\models.py", line 18, in ModelConfig cache_dir: Path NameError: name 'Path' is not defined (.venv) PS E:\AI_System\web_ui>
08-24
你为什么不自己检查一下 我的模型是不是下载完了 有没有什么问题 为什么要我检查 我又不会看,再说有文件也不代表一定就是完好的啊! “PowerShell 7 环境已加载 (版本: 7.3.6) PowerShell 7 环境已加载 (版本: 7.3.6) PS C:\Users\Administrator\Desktop> cd E:\AI_System\web_ui PS E:\AI_System\web_ui> .\.venv\Scripts\activate (.venv) PS E:\AI_System\web_ui> python server.py 项目根目录: E:\AI_System ✅ 已创建模型目录: E:\AI_System\AI_Models\Qwen2-7B 2025-08-23 02:23:44,693 - WebServer - INFO - 强制启用离线模式... 2025-08-23 02:23:44,693 - WebServer - INFO - TRANSFORMERS_OFFLINE: 1 2025-08-23 02:23:44,693 - WebServer - INFO - HF_DATASETS_OFFLINE: 1 2025-08-23 02:23:44,693 - WebServer - INFO - HF_HUB_OFFLINE: 1 2025-08-23 02:23:45,871 - ConfigLoader - INFO - ✅ 检测到有效工作区: E:\AI_System 2025-08-23 02:23:45,873 - ConfigLoader - INFO - ✅ 已加载环境文件: E:\AI_System\.env 2025-08-23 02:23:45,874 - ConfigLoader - INFO - ✅ 已加载硬件配置文件: E:\AI_System\config\hardware_config.json 2025-08-23 02:23:45,875 - ConfigLoader - INFO - ============================================================ 2025-08-23 02:23:45,875 - ConfigLoader - INFO - 🏠 工作区根目录: E:\AI_System 2025-08-23 02:23:45,875 - ConfigLoader - INFO - 🌿 环境: development (DEBUG: True) 2025-08-23 02:23:45,875 - ConfigLoader - INFO - 🌐 主机: 0.0.0.0:8000 (Gradio: 7860) 2025-08-23 02:23:45,875 - ConfigLoader - INFO - 📝 日志级别: DEBUG 2025-08-23 02:23:45,879 - ConfigLoader - INFO - 💾 模型缓存: E:\ai_temp\models 2025-08-23 02:23:45,881 - ConfigLoader - INFO - 🤖 默认模型: minimal-model (GPU: False) 2025-08-23 02:23:45,881 - ConfigLoader - INFO - 🔑 安全密钥: ***** 2025-08-23 02:23:45,882 - ConfigLoader - INFO - ⏰ 生活系统: 启用 2025-08-23 02:23:45,883 - ConfigLoader - INFO - 🗄️ 数据库: sqlite://ai_user@localhost:5432/ai_system 2025-08-23 02:23:45,883 - ConfigLoader - INFO - ============================================================ ERROR:root:缺少必要依赖包,请安装: pip install huggingface-hub diskcache requests 2025-08-23 02:23:45,885 - WebServer - INFO - 成功导入 AutonomousAgent INFO:WebServer:成功导入 AutonomousAgent 2025-08-23 02:23:45,885 - WebServer - INFO - 创建智能体实例... INFO:WebServer:创建智能体实例... 2025-08-23 02:23:45,885 - WebServer - INFO - 启动认知和意识系统... INFO:WebServer:启动认知和意识系统... 2025-08-23 02:23:45,885 - WebServer - ERROR - ❌ 缺少模型文件: config.json, pytorch_model.bin, tokenizer.json ERROR:WebServer:❌ 缺少模型文件: config.json, pytorch_model.bin, tokenizer.json 2025-08-23 02:23:45,885 - WebServer - INFO - 请下载模型文件到: E:\AI_System\AI_Models\Qwen2-7B INFO:WebServer:请下载模型文件到: E:\AI_System\AI_Models\Qwen2-7B 2025-08-23 02:23:45,885 - WebServer - INFO - 下载完成后重新启动服务 INFO:WebServer:下载完成后重新启动服务 (.venv) PS E:\AI_System\web_ui> 项目根目录: E:\AI_System 项目根目录:: The term '项目根目录:' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. (.venv) PS E:\AI_System\web_ui> 2025-08-23 02:20:35,187 - WebServer - INFO - 强制启用离线模式... ParserError: Line | 1 | 2025-08-23 02:20:35,187 - WebServer - INFO - 强制启用离线模式... | ~~~~~~~~ | Unexpected token '02:20:35' in expression or statement. (.venv) PS E:\AI_System\web_ui> 2025-08-23 02:20:35,187 - WebServer - INFO - ✅ 模型文件完整: Qwen2-7B ParserError: Line | 1 | 2025-08-23 02:20:35,187 - WebServer - INFO - ✅ 模型文件完整: Qwen2-7B | ~~~~~~~~ | Unexpected token '02:20:35' in expression or statement. (.venv) PS E:\AI_System\web_ui> 2025-08-23 02:20:35,187 - WebServer - INFO - 认知和意识系统启动成功 ParserError: Line | 1 | 2025-08-23 02:20:35,187 - WebServer - INFO - 认知和意识系统启动成功 | ~~~~~~~~ | Unexpected token '02:20:35' in expression or statement. (.venv) PS E:\AI_System\web_ui>”
最新发布
08-24
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值