Как Вы добавляете платформу PHP для кодирования завершения/помогать в Eclipse, PDT и платформа могут быть добавлены как значение по умолчанию для всех проектов?

Вы можете использовать

string txt = "                   i am a string                                    ";
txt = txt.TrimStart().TrimEnd();

Вывод «я строка»

5
задан GEOCHET 1 June 2009 в 16:41
поделиться

1 ответ

Generally speaking in Eclipse, you can add a library or framework to code assist/completion by:

  1. Going into Project > Properties
  2. Under PHP Include Path, pick the "Libaries" tab.
  3. Add an "external folder" with the path to where your framework is located.

This can also be done on project creation. I'm not sure of a way to have it automatically attach a library in this way.

The feature itself is a bit more flexible than that, allowing you to do things like set variables for a DB connection, rather than having to copy down lengthy config files to your local install.

10
ответ дан 13 December 2019 в 22:15
поделиться