Is there a plug-in (or setting) in sublime2 that shows a side pane with a navigator (or tree view) for the class in an active file? Someting similar to the class navigator in netbeans?
Use the CTRL+R command to browser the symbols on the current file, and CTRL+SHIFT+R (only available in Sublime Text 3) to browse symbols in all file opened in tabs.
I think CTags is a nice candidate too.
It uses the ctags executable to index all your project files and allow you to browse through symbols in your whole project. Quite impressive.
Using Sublime2, the CMD+R is the 'Goto Symbol' option on the 'Goto' menu. You may have remapped it. Whilst it isn't a permanent onscreen navigator (like NetBeans for example), it is pretty quick to use.
CMD+R and SHIFT+CMD+R are available on Sublime Text 3 for Mac. CMD+R will browse symbols on the current open file as stated before here, while SHIFT+CMD+R will browse all symbols in all open files if you don't have a ST3 project open, or browse all symbols in all project files if a project is open.
You have to vote here in order to see this functionality implemented in SublimeText :
http://sublimetext.userecho.com/topics/1265-add-a-class-browser/
In the meantime, CTRL+R is the only alternative...
Related
I am a starter in programming. One of my friends told me that I can start programing without installing any app and that I need only notepad to start learning HTML. The thing I can't find out is how I actually make it work. I inputted the code he gave me and I also made sure there where no typos, but then after I saved it I can not open it as a local file. I have only been able to open it as a text document so I can only see the code.
For this you have to save the file you are working on with the extension: .html. Then you have to open it with a browser, and you will see there the content of it
you can create a notepad and save it as name.html (not as .txt)
write the code inside it.
You can start with the notepad software. Unfortunately, this is not the best option. In fact, specialized software is recommended. Thanks to them, you will be able to write code faster thanks to the suggestions made by the software or to the very useful shortcuts! If you want to use this software, I recommend you one of the best on the market: Visual Studio Code.
If however you want to stay with notepad, you just have to click on "File" > "Save as" and to choose the type of file you want. In your case, it will be .html (Hypertext Markup Language)
You can create a file called [filename].html, and right click on it to open it in notepad. After Editing the file and adding your code to it, you can double click on it and it will open in your browser.
If you start enjoying to code, getting an IDE will make it much better. Visual Studio Code is recommended for this as it is user friendly and won't take up much storage space :)
code.visualstudio.com - Visual Studio Code
After saving the HTML code save it as filename.html, make sure that file extension is .html otherwise the filesystem will not recognized it.
Then right click on the file and open it with chrome or whatever browser you have and it will work, else open browser and drag it to browser and drop it, your html page will open in browser.
I am using Atom on Windows.
I would like to use a keyboard shortcut to open my HTML page in a browser but I can't find such a shortcut for Windows. Is there a shortcut in Atom for this?
Ctrl-Alt-Q on the open HTML file, according to the official site. Curiously, there are some reports of the shortcut not working so it could be a windows bug, works fine on OSX, at least v0.4.7.
Another way to check the shortcut is to look for it on atom's command palette (ctrl-shift-p):
If the specified shortcut still won't work and you wish to try to manually bind it, you can try opening atom's keymap.cson file:
and try setting the following in the keymap.cson file:
'atom-text-editor':
'ctrl-alt-q': 'open-in-browser:open'
Save the file and try the shortcut.
Atom's manual in-depth information about keymaps
I added this lines in keymap.
When I click in Editor and I also click workspace, It works well.
'atom-workspace':
'ctrl-e': 'open-in-browsers:toggle'
'atom-workspace atom-text-editor:not([mini])':
'ctrl-e': 'open-in-browsers:toggle'
I use Webstorm as my IDE and Brackets for some quicker stuff.
Is there a light weight editor similar to brackets that has a snippets panel like Dreamweaver? or maybe one that has a plug in or extension that adds a snippets panel?
I'm familiar with live templates in Webstorm but I don't believe there is a way to have a list of them in a panel that is always visible. I much prefer to have a big panel of commonly used blocks of code and html tags that are always visible that I can just click on.
Thanks for the help.
Windows Only:
Notepad++ has a a snippet plug in which does the same thing. After installing Notepad++ you simply click the Plugin menu -> Plugin Manager. The tick snippets and press install. The rest is done for you.
Alternatives:
Sublime Text has a snippet tool but it's not the same as as Dreamweavers snippet panel.
Sublime Text 2 on Mountain Lion always makes itself the preferred app to open .md files. I use iA Writer for my programming notes which saves files as .md.
Every time when I right-click "Open As…" and select the "Always with this app" option and then select iA Writer from Applications folder, it reverts back to Sublime Text.
Even when Sublime Text is not even running. I found no options to teach Sublime Text or the OS which files to open with which program.
I need iA writer for my programming notes because of the larger font. It helps me think sharper. So it is programming related. Also when I work in Sublime Text for code I like the clear separation of notes taking and coding.
In Finder, right-click (or Ctrl-click) on a .md file and select the Get Info option. In the window that pops up, select iA Writer from the Open with: dropdown menu, then click the Change All button just below it. Confirm the dialog that pops up, and now all Markdown files should be associated with the correct app. The association may change upon updating Sublime or installing the beta of ST3, but it's easy enough to change back.
The reason your previous action wasn't working was because you were only associating that particular file with iA Writer, not all .md files.
I know NetBeans has this feature, but I can't find it in Eclipse. A quick search for plugins was not successful.
Java2Html - Eclipse Plugin:
Convert files:
Select items in the Package Explorer, Navigator or other views and right click to open the context menu. There is a Java2Html menu item that opens the conversion dialog.
Convert text from a text editor:
Right click on an editor and choose the Java2Html context menu item to convert the current selected text.
Adjust preferences:
Colors, tab size, etc. for conversion can be adjusted on the preference pages (Menu "Window" - "Preferences" - "Java" - "Java2Html")...
Hackish way:
On Windows at least, when you do Ctrl-A (Select all), Ctrl+C (Copy) what actually gets copied to the clipboard is formatted text (with all the colors and fonts). Then you can paste (Ctrl-V) it to something that can accept formatted text, say Microsoft Word or even Wordpad and save it to whatever format you wish.
The Copy as HTML eclipse IDE plugin allows us to directly copy our
code as HTML and paste it to our blogs or forums without any
formatting.
Download Copy as HTML eclipse plugin
Steps to install the plugin:
Download the Copy as HTML eclipse plugin
Copy it to the 'dropins' folder of your eclipse installation
If 'dropins' folder is not present then copy it to the 'plugins' folder of your eclipse installation
Restart eclipse IDE
That's it
Steps to Use
Select the code or text to be copied
Select 'Copy as HTML' option or press 'cntrl+shift+3'
Paste it your superb blog
Taken from here:
http://java-sample-program.blogspot.hu/2012/12/copy-as-html-eclipse-plugin.html